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

Commit 4ef1b757 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set text toasts as trusted overlays"

parents 1aea1ecc 3edb5850
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -129,6 +129,8 @@ public class ToastUI extends SystemUI implements CommandQueue.Callbacks {
        mCallback = callback;
        mPresenter = new ToastPresenter(context, mIAccessibilityManager, mNotificationManager,
                packageName);
        // Set as trusted overlay so touches can pass through toasts
        mPresenter.getLayoutParams().setTrustedOverlay();
        mToastLogger.logOnShowToast(uid, packageName, text.toString(), token.toString());
        mPresenter.show(mToast.getView(), token, windowToken, duration, mToast.getGravity(),
                mToast.getXOffset(), mToast.getYOffset(), mToast.getHorizontalMargin(),