@Override protected void onClick() { super.onClick(); if (alertDialog != null) { alertDialog.show(); } }
@Override public void onClick() { super.onClick(); System.exit(0); } }
@Override protected void onClick() { if (mManagedPrefDelegate != null && mManagedPrefDelegate.onClickPreference(this)) return; super.onClick(); } }
@Override protected void onClick() { super.onClick(); showDialog(); }
@Override protected void onClick() { super.onClick(); showDialog(); }
@Override public void onClick() { super.onClick(); Map<String, Class> activityMap = new HashMap<String, Class>(); activityMap.put("about", AboutActivity.class); activityMap.put("category_manager", CategoryManagerActivity.class); activityMap.put("themer", ThemerActivity.class); activityMap.put("open_file", FileActivity.class); if (activityMap.containsKey(getKey())) { Intent intent = new Intent(getContext(), activityMap.get(getKey())); getContext().startActivity(intent); } } }
@Override protected void onClick() { super.onClick(); ColourDialogFragment fragment = ColourDialogFragment.newInstance(); fragment.setPreference(this); Activity activity = (Activity) getContext(); activity.getFragmentManager().beginTransaction() .add(fragment, getFragmentTag()) .commit(); }
@Override protected void onClick() { super.onClick(); ColorDialogFragment fragment = ColorDialogFragment.newInstance(); fragment.setPreference(this); Activity activity = (Activity) getContext(); activity.getFragmentManager().beginTransaction() .add(fragment, getFragmentTag()) .commit(); }
@Override protected void onClick() { super.onClick(); ColorDialogFragment fragment = ColorDialogFragment.newInstance(); fragment.setPreference(this); fragment.setColorType(colorType); Activity activity = (Activity) getContext(); activity.getFragmentManager().beginTransaction() .add(fragment, getFragmentTag()) .commit(); }
@Override protected void onClick() { super.onClick(); if (showDialog) { ColorUtils.showDialog(getContext(), this, getFragmentTag(), numColumns, colorShape, colorChoices, getValue()); } }
@Override protected void onClick() { super.onClick(); new ChromaDialog.Builder() .initialColor(Color.parseColor(value)) .colorMode(ColorMode.RGB) .indicatorMode(IndicatorMode.DECIMAL) .onColorSelected(new OnColorSelectedListener() { @Override public void onColorSelected(int color) { setValue(String.format("#%06X", (0xFFFFFF & color))); } }) .create().show(((AppCompatActivity) getContext()).getSupportFragmentManager(), "Color Picker"); }
@Override protected void onClick() { super.onClick(); if (onShowDialogListener != null) { onShowDialogListener.onShowColorPickerDialog((String) getTitle(), color); } else if (showDialog) { ColorPickerDialog dialog = ColorPickerDialog.newBuilder() .setDialogType(dialogType) .setDialogTitle(dialogTitle) .setColorShape(colorShape) .setPresets(presets) .setAllowPresets(allowPresets) .setAllowCustom(allowCustom) .setShowAlphaSlider(showAlphaSlider) .setShowColorShades(showColorShades) .setColor(color) .create(); dialog.setColorPickerDialogListener(ColorPreference.this); Activity activity = (Activity) getContext(); dialog.show(activity.getFragmentManager(), getFragmentTag()); } }
@Override protected void onClick() { super.onClick(); if (onShowDialogListener != null) { onShowDialogListener.onShowColorPickerDialog((String) getTitle(), color); } else if (showDialog) { ColorPickerDialog dialog = ColorPickerDialog.newBuilder() .setDialogType(dialogType) .setDialogTitle(dialogTitle) .setColorShape(colorShape) .setPresets(presets) .setAllowPresets(allowPresets) .setAllowCustom(allowCustom) .setShowAlphaSlider(showAlphaSlider) .setShowColorShades(showColorShades) .setColor(color) .create(); dialog.setColorPickerDialogListener(ColorPreference.this); Activity activity = (Activity) getContext(); dialog.show(activity.getFragmentManager(), getFragmentTag()); } }
@Override protected void onClick() { super.onClick(); if (onShowDialogListener != null) { onShowDialogListener.onShowColorPickerDialog((String) getTitle(), color); } else if (showDialog) { ColorPickerDialog dialog = ColorPickerDialog.newBuilder() .setDialogType(dialogType) .setDialogTitle(dialogTitle) .setColorShape(colorShape) .setPresets(presets) .setAllowPresets(allowPresets) .setAllowCustom(allowCustom) .setShowAlphaSlider(showAlphaSlider) .setShowColorShades(showColorShades) .setColor(color) .create(); dialog.setColorPickerDialogListener(this); FragmentActivity activity = (FragmentActivity) getContext(); activity.getSupportFragmentManager() .beginTransaction() .add(dialog, getFragmentTag()) .commitAllowingStateLoss(); } }