diff options
| author | 2020-04-30 19:39:01 +0000 | |
|---|---|---|
| committer | 2020-04-30 19:39:01 +0000 | |
| commit | 7334f95129544cee084c3ff04da84a8f61a9425d (patch) | |
| tree | 8d0e38e17c2a75c3ed1092285d57e7f081f9ecfa | |
| parent | 303e4056ac5b033d2180cedbd7c73dc7c494e49e (diff) | |
| parent | 49634b76198461ba708865499669bd478c521c97 (diff) | |
Merge "Remove a stopship" into rvc-dev
| -rw-r--r-- | services/core/java/com/android/server/notification/PreferencesHelper.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/services/core/java/com/android/server/notification/PreferencesHelper.java b/services/core/java/com/android/server/notification/PreferencesHelper.java index a4b99b376b30..ec0fc4a34387 100644 --- a/services/core/java/com/android/server/notification/PreferencesHelper.java +++ b/services/core/java/com/android/server/notification/PreferencesHelper.java @@ -166,13 +166,6 @@ public class PreferencesHelper implements RankingConfig { private boolean mAllowInvalidShortcuts = false; - private static final String BADGING_FORCED_TRUE = "force_badging_true_for_bug"; - - // STOPSHIP (b/142218092) this should be removed before ship - static boolean wasBadgingForcedTrue(Context context) { - return Settings.Secure.getInt(context.getContentResolver(), BADGING_FORCED_TRUE, 0) != 0; - } - public PreferencesHelper(Context context, PackageManager pm, RankingHandler rankingHandler, ZenModeHelper zenHelper, NotificationChannelLogger notificationChannelLogger, AppOpsManager appOpsManager) { @@ -183,14 +176,6 @@ public class PreferencesHelper implements RankingConfig { mNotificationChannelLogger = notificationChannelLogger; mAppOps = appOpsManager; - // STOPSHIP (b/142218092) this should be removed before ship - if (!wasBadgingForcedTrue(context)) { - Settings.Secure.putInt(mContext.getContentResolver(), - Settings.Secure.NOTIFICATION_BADGING, - DEFAULT_SHOW_BADGE ? 1 : 0); - Settings.Secure.putInt(context.getContentResolver(), BADGING_FORCED_TRUE, 1); - } - updateBadgingEnabled(); updateBubblesEnabled(); syncChannelsBypassingDnd(mContext.getUserId()); |