Move vibrate while unlocked behind a flag
Keep this feature disabled for the initial release. Test: atest NotificationAttentionHelperTest Bug: 270456865 Change-Id: Ia80cc0c147bbc94fa5faf8e2f12a339a9355d332
This commit is contained in:
@@ -40,7 +40,7 @@ public class PoliteNotifVibrateUnlockedToggleController extends TogglePreference
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
// TODO: b/291897570 - remove this when the feature flag is removed!
|
||||
if (!Flags.politeNotifications()) {
|
||||
if (!Flags.politeNotifications() || !Flags.vibrateWhileUnlocked()) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
return mContext.getSystemService(Vibrator.class).hasVibrator() ? AVAILABLE
|
||||
|
||||
Reference in New Issue
Block a user