Merge "AOD: show AOD1 instead of AOD2 on double tap"
This commit is contained in:
committed by
Android (Google) Code Review
commit
9031554c25
@@ -72,6 +72,9 @@ public class VisualStabilityManager implements OnHeadsUpChangedListener {
|
||||
* @param pulsing whether we are currently pulsing for ambient display.
|
||||
*/
|
||||
public void setPulsing(boolean pulsing) {
|
||||
if (mPulsing == pulsing) {
|
||||
return;
|
||||
}
|
||||
mPulsing = pulsing;
|
||||
updateReorderingAllowed();
|
||||
}
|
||||
|
||||
@@ -5005,8 +5005,12 @@ public class StatusBar extends SystemUI implements DemoMode,
|
||||
@Override
|
||||
public void onPulseStarted() {
|
||||
callback.onPulseStarted();
|
||||
mStackScroller.setPulsing(true);
|
||||
mVisualStabilityManager.setPulsing(true);
|
||||
if (!mHeadsUpManager.getAllEntries().isEmpty()) {
|
||||
// Only pulse the stack scroller if there's actually something to show.
|
||||
// Otherwise just show the always-on screen.
|
||||
mStackScroller.setPulsing(true);
|
||||
mVisualStabilityManager.setPulsing(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4004,6 +4004,9 @@ public class NotificationStackScrollLayout extends ViewGroup
|
||||
}
|
||||
|
||||
public void setPulsing(boolean pulsing) {
|
||||
if (mPulsing == pulsing) {
|
||||
return;
|
||||
}
|
||||
mPulsing = pulsing;
|
||||
updateNotificationAnimationStates();
|
||||
updateContentHeight();
|
||||
|
||||
Reference in New Issue
Block a user