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

Commit cf89eb0e authored by hee.youn's avatar hee.youn
Browse files

Use originalView's context

Use originalView's context for appcompat's localNightMode support

Bug: 276473378

Change-Id: I473011abb8a0b7793377a3e2b2a65f5601bfc925
parent 9e319787
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -861,7 +861,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
        final MenuHelper helper;
        final MenuHelper helper;
        final boolean isPopup = !Float.isNaN(x) && !Float.isNaN(y);
        final boolean isPopup = !Float.isNaN(x) && !Float.isNaN(y);
        if (isPopup) {
        if (isPopup) {
            helper = mWindow.mContextMenu.showPopup(getContext(), originalView, x, y);
            helper = mWindow.mContextMenu.showPopup(originalView.getContext(), originalView, x, y);
        } else {
        } else {
            helper = mWindow.mContextMenu.showDialog(originalView, originalView.getWindowToken());
            helper = mWindow.mContextMenu.showDialog(originalView, originalView.getWindowToken());
        }
        }