If zen settings are updated, don't show onboarding
Change-Id: I33c328e5d90f1b948c7dacb2e7f6265a1e496d35 Bug: 109668117 Test: ZenOnboardingActivity
This commit is contained in:
@@ -157,6 +157,12 @@ public class ZenOnboardingActivity extends Activity {
|
||||
// ZEN_SETTINGS_UPDATED is true for:
|
||||
// - fresh P+ device
|
||||
// - if zen visual effects values were changed by the user in Settings
|
||||
NotificationManager nm = context.getSystemService(NotificationManager.class);
|
||||
if (NotificationManager.Policy.areAllVisualEffectsSuppressed(
|
||||
nm.getNotificationPolicy().suppressedVisualEffects)) {
|
||||
Settings.Global.putInt(context.getContentResolver(),
|
||||
Settings.Global.ZEN_SETTINGS_UPDATED, 1);
|
||||
}
|
||||
return Settings.Global.getInt(context.getContentResolver(),
|
||||
Settings.Global.ZEN_SETTINGS_UPDATED, 0) != 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user