am 767c0bf7: Restore preference change update to show app icon setting.
* commit '767c0bf71b9c0af7f8451d7d355f6efad21a6e5b': Restore preference change update to show app icon setting.main
commit
6441faa610
|
@ -109,7 +109,7 @@ public final class SystemBroadcastReceiver extends BroadcastReceiver {
|
||||||
context.sendBroadcast(updateIntent);
|
context.sendBroadcast(updateIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void toggleAppIcon(final Context context) {
|
public static void toggleAppIcon(final Context context) {
|
||||||
final int appInfoFlags = context.getApplicationInfo().flags;
|
final int appInfoFlags = context.getApplicationInfo().flags;
|
||||||
final boolean isSystemApp = (appInfoFlags & ApplicationInfo.FLAG_SYSTEM) > 0;
|
final boolean isSystemApp = (appInfoFlags & ApplicationInfo.FLAG_SYSTEM) > 0;
|
||||||
if (Log.isLoggable(TAG, Log.INFO)) {
|
if (Log.isLoggable(TAG, Log.INFO)) {
|
||||||
|
|
|
@ -26,6 +26,7 @@ import android.preference.Preference;
|
||||||
|
|
||||||
import com.android.inputmethod.latin.AudioAndHapticFeedbackManager;
|
import com.android.inputmethod.latin.AudioAndHapticFeedbackManager;
|
||||||
import com.android.inputmethod.latin.R;
|
import com.android.inputmethod.latin.R;
|
||||||
|
import com.android.inputmethod.latin.SystemBroadcastReceiver;
|
||||||
import com.android.inputmethod.latin.define.ProductionFlags;
|
import com.android.inputmethod.latin.define.ProductionFlags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -106,6 +107,8 @@ public final class AdvancedSettingsFragment extends SubScreenFragment {
|
||||||
if (key.equals(Settings.PREF_POPUP_ON)) {
|
if (key.equals(Settings.PREF_POPUP_ON)) {
|
||||||
setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY,
|
setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY,
|
||||||
Settings.readKeyPreviewPopupEnabled(prefs, res));
|
Settings.readKeyPreviewPopupEnabled(prefs, res));
|
||||||
|
} else if (key.equals(Settings.PREF_SHOW_SETUP_WIZARD_ICON)) {
|
||||||
|
SystemBroadcastReceiver.toggleAppIcon(getActivity());
|
||||||
}
|
}
|
||||||
updateListPreferenceSummaryToCurrentValue(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY);
|
updateListPreferenceSummaryToCurrentValue(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY);
|
||||||
refreshEnablingsOfKeypressSoundAndVibrationSettings();
|
refreshEnablingsOfKeypressSoundAndVibrationSettings();
|
||||||
|
|
Loading…
Reference in New Issue