Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f2981a8 authored by Michał Brzeziński's avatar Michał Brzeziński Committed by Automerger Merge Worker
Browse files

Merge "Fixing shade not collapsing after rotating from split shade" into...

Merge "Fixing shade not collapsing after rotating from split shade" into udc-dev am: 9ade6c30 am: 66244229

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23348522



Change-Id: I20d5271b2ad029ba11671cf18a0e3dcd88a5aef1
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ef6e8cda 66244229
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2017,6 +2017,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
        }
        updateExpansionAndVisibility();
        mNotificationStackScrollLayoutController.setPanelFlinging(false);
        // expandImmediate should be always reset at the end of animation
        mQsController.setExpandImmediate(false);
    }

    private boolean isInContentBounds(float x, float y) {
+7 −0
Original line number Diff line number Diff line
@@ -1099,6 +1099,13 @@ public class NotificationPanelViewControllerTest extends NotificationPanelViewCo
        inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped();
    }

    @Test
    public void onShadeFlingEnd_mExpandImmediateShouldBeReset() {
        mNotificationPanelViewController.onFlingEnd(false);

        verify(mQsController).setExpandImmediate(false);
    }

    @Test
    public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() {
        mStatusBarStateController.setState(SHADE);