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

Commit 9112e74f authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

Merge "Fixes the inability to start quickscrub because hit target is none" into pi-dev

am: f856f352

Change-Id: I83e40ef4f253890441369e46479b62487eaf27b5
parents b2d133a8 f856f352
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -842,10 +842,17 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
            buttonBounds.setEmpty();
            return;
        }
        // Temporarily reset the translation back to origin to get the position in window
        final float posX = view.getTranslationX();
        final float posY = view.getTranslationY();
        view.setTranslationX(0);
        view.setTranslationY(0);
        view.getLocationInWindow(mTmpPosition);
        buttonBounds.set(mTmpPosition[0], mTmpPosition[1],
                mTmpPosition[0] + view.getMeasuredWidth(),
                mTmpPosition[1] + view.getMeasuredHeight());
        view.setTranslationX(posX);
        view.setTranslationY(posY);
    }

    private void updateRotatedViews() {