fh.java 1.61 KB
import android.annotation.TargetApi;
import android.app.UiModeManager;
import android.content.Context;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatCallback;
import android.view.ActionMode;
import android.view.ActionMode.Callback;
import android.view.Window;
import android.view.Window.Callback;

@TargetApi(23)
@RequiresApi(23)
public class fh
  extends fg
{
  private final UiModeManager v;
  
  public fh(Context paramContext, Window paramWindow, AppCompatCallback paramAppCompatCallback)
  {
    super(paramContext, paramWindow, paramAppCompatCallback);
    this.v = ((UiModeManager)paramContext.getSystemService("uimode"));
  }
  
  Window.Callback a(Window.Callback paramCallback)
  {
    return new fh.a(paramCallback);
  }
  
  final int c(int paramInt)
  {
    if ((paramInt == 0) && (this.v.getNightMode() == 0)) {
      return -1;
    }
    return super.c(paramInt);
  }
  
  class a
    extends fg.a
  {
    a(Window.Callback paramCallback)
    {
      super(paramCallback);
    }
    
    public ActionMode onWindowStartingActionMode(ActionMode.Callback paramCallback)
    {
      return null;
    }
    
    public ActionMode onWindowStartingActionMode(ActionMode.Callback paramCallback, int paramInt)
    {
      if (fh.this.isHandleNativeActionModesEnabled()) {}
      switch (paramInt)
      {
      default: 
        return super.onWindowStartingActionMode(paramCallback, paramInt);
      }
      return a(paramCallback);
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/fh.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */