Merge "RESTRICT AUTOMERGE Make toasts non-clickable" into qt-dev

This commit is contained in:
Sterling Huber
2019-12-13 16:44:14 +00:00
committed by Android (Google) Code Review

View File

@@ -857,6 +857,8 @@ public class DisplayPolicy {
if (canToastShowWhenLocked(callingPid)) { if (canToastShowWhenLocked(callingPid)) {
attrs.flags |= WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED; attrs.flags |= WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED;
} }
// Toasts can't be clickable
attrs.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
break; break;
} }