Merge "Fixing shade not collapsing after rotating from split shade" into udc-dev am: 9ade6c3076
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23348522 Change-Id: I8c743f5fbd8794e646470042d83962c7033ddab1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2011,6 +2011,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
|
|||||||
}
|
}
|
||||||
updateExpansionAndVisibility();
|
updateExpansionAndVisibility();
|
||||||
mNotificationStackScrollLayoutController.setPanelFlinging(false);
|
mNotificationStackScrollLayoutController.setPanelFlinging(false);
|
||||||
|
// expandImmediate should be always reset at the end of animation
|
||||||
|
mQsController.setExpandImmediate(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isInContentBounds(float x, float y) {
|
private boolean isInContentBounds(float x, float y) {
|
||||||
|
|||||||
@@ -1096,6 +1096,13 @@ public class NotificationPanelViewControllerTest extends NotificationPanelViewCo
|
|||||||
inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped();
|
inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void onShadeFlingEnd_mExpandImmediateShouldBeReset() {
|
||||||
|
mNotificationPanelViewController.onFlingEnd(false);
|
||||||
|
|
||||||
|
verify(mQsController).setExpandImmediate(false);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() {
|
public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() {
|
||||||
mStatusBarStateController.setState(SHADE);
|
mStatusBarStateController.setState(SHADE);
|
||||||
|
|||||||
Reference in New Issue
Block a user