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

Commit f02a56db authored by Mike Digman's avatar Mike Digman Committed by android-build-merger
Browse files

Merge "Only ripple rotate btn if attached to window" into pi-dev am: 412a362c

am: 8dea2c00

Change-Id: Id1e4835db4197699a79c9a2ddaa65b77464bda0a
parents 15e33eda 8dea2c00
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -521,7 +521,7 @@ public class NavigationBarFragment extends Fragment implements Callbacks {

        // Clear any pending suggestion flag as it has either been nullified or is being shown
        mPendingRotationSuggestion = false;
        getView().removeCallbacks(mCancelPendingRotationProposal);
        if (getView() != null) getView().removeCallbacks(mCancelPendingRotationProposal);

        // Handle the visibility change and animation
        if (visible) { // Appear and change (cannot force)
@@ -1141,6 +1141,7 @@ public class NavigationBarFragment extends Fragment implements Callbacks {
        private final Runnable mRipple = new Runnable() {
            @Override
            public void run() { // Cause the ripple to fire via false presses
                if (!mRoot.isAttachedToWindow()) return;
                mRoot.setPressed(true);
                mRoot.setPressed(false);
            }