mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Restore preference change update to show app icon setting.
Bug: 20544640 Change-Id: I6e2a26a8a5e43360dfefcc85bb46eae28f5e3867
This commit is contained in:
parent
ee10cceb52
commit
767c0bf71b
@ -109,7 +109,7 @@ public final class SystemBroadcastReceiver extends BroadcastReceiver {
|
||||
context.sendBroadcast(updateIntent);
|
||||
}
|
||||
|
||||
private static void toggleAppIcon(final Context context) {
|
||||
public static void toggleAppIcon(final Context context) {
|
||||
final int appInfoFlags = context.getApplicationInfo().flags;
|
||||
final boolean isSystemApp = (appInfoFlags & ApplicationInfo.FLAG_SYSTEM) > 0;
|
||||
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.R;
|
||||
import com.android.inputmethod.latin.SystemBroadcastReceiver;
|
||||
import com.android.inputmethod.latin.define.ProductionFlags;
|
||||
|
||||
/**
|
||||
@ -106,6 +107,8 @@ public final class AdvancedSettingsFragment extends SubScreenFragment {
|
||||
if (key.equals(Settings.PREF_POPUP_ON)) {
|
||||
setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY,
|
||||
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);
|
||||
refreshEnablingsOfKeypressSoundAndVibrationSettings();
|
||||
|
Loading…
Reference in New Issue
Block a user