Merge "AOD: show AOD1 instead of AOD2 on double tap"

This commit is contained in:
TreeHugger Robot
2017-02-14 12:28:31 +00:00
committed by Android (Google) Code Review
3 changed files with 12 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -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

View File

@@ -4004,6 +4004,9 @@ public class NotificationStackScrollLayout extends ViewGroup
}
public void setPulsing(boolean pulsing) {
if (mPulsing == pulsing) {
return;
}
mPulsing = pulsing;
updateNotificationAnimationStates();
updateContentHeight();