Update the summary of AoD when Bedtime mode is on
Since Bedtime mode can suppress AoD, after reviewed by UX, we decide update the summary to "Unavailable because Bedtime mode is on" when AoD is suppressed by Bedtime mode. Bug: 168790245 Test: manual & robotest Change-Id: Id2511cb0ad93b44f6bf701a707b7ddef9438653d Merged-In: Id2511cb0ad93b44f6bf701a707b7ddef9438653d
This commit is contained in:
committed by
Yogisha Dixit
parent
03f15baeef
commit
bca70dd22d
@@ -88,9 +88,7 @@ public class LockscreenDashboardFragment extends DashboardFragment
|
||||
@Override
|
||||
public void onAttach(Context context) {
|
||||
super.onAttach(context);
|
||||
use(AmbientDisplayAlwaysOnPreferenceController.class)
|
||||
.setConfig(getConfig(context))
|
||||
.setCallback(this::updatePreferenceStates);
|
||||
use(AmbientDisplayAlwaysOnPreferenceController.class).setConfig(getConfig(context));
|
||||
use(AmbientDisplayNotificationsPreferenceController.class).setConfig(getConfig(context));
|
||||
use(DoubleTapScreenPreferenceController.class).setConfig(getConfig(context));
|
||||
use(PickupGesturePreferenceController.class).setConfig(getConfig(context));
|
||||
|
||||
Reference in New Issue
Block a user