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

Commit 412a362c authored by Mike Digman's avatar Mike Digman Committed by Android (Google) Code Review
Browse files

Merge "Only ripple rotate btn if attached to window" into pi-dev

parents 032ab152 f4c98996
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);
            }