EditorInfoCompat.java 2.7 KB
package android.support.v13.view.inputmethod;

import android.annotation.TargetApi;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.os.BuildCompat;
import android.view.inputmethod.EditorInfo;

@TargetApi(13)
@RequiresApi(13)
public final class EditorInfoCompat
{
  private static final String[] a = new String[0];
  private static final c b = new b((byte)0);
  
  static
  {
    if (BuildCompat.isAtLeastNMR1())
    {
      b = new a((byte)0);
      return;
    }
  }
  
  @NonNull
  public static String[] getContentMimeTypes(EditorInfo paramEditorInfo)
  {
    return b.a(paramEditorInfo);
  }
  
  public static void setContentMimeTypes(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString)
  {
    b.a(paramEditorInfo, paramArrayOfString);
  }
  
  static final class a
    implements EditorInfoCompat.c
  {
    public final void a(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString)
    {
      paramEditorInfo.contentMimeTypes = paramArrayOfString;
    }
    
    @NonNull
    public final String[] a(@NonNull EditorInfo paramEditorInfo)
    {
      paramEditorInfo = paramEditorInfo.contentMimeTypes;
      if (paramEditorInfo != null) {
        return paramEditorInfo;
      }
      return EditorInfoCompat.a();
    }
  }
  
  static final class b
    implements EditorInfoCompat.c
  {
    private static String a = "android.support.v13.view.inputmethod.EditorInfoCompat.CONTENT_MIME_TYPES";
    
    public final void a(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString)
    {
      if (paramEditorInfo.extras == null) {
        paramEditorInfo.extras = new Bundle();
      }
      paramEditorInfo.extras.putStringArray(a, paramArrayOfString);
    }
    
    @NonNull
    public final String[] a(@NonNull EditorInfo paramEditorInfo)
    {
      if (paramEditorInfo.extras == null) {
        paramEditorInfo = EditorInfoCompat.a();
      }
      String[] arrayOfString;
      do
      {
        return paramEditorInfo;
        arrayOfString = paramEditorInfo.extras.getStringArray(a);
        paramEditorInfo = arrayOfString;
      } while (arrayOfString != null);
      return EditorInfoCompat.a();
    }
  }
  
  static abstract interface c
  {
    public abstract void a(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString);
    
    @NonNull
    public abstract String[] a(@NonNull EditorInfo paramEditorInfo);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v13/view/inputmethod/EditorInfoCompat.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */