Merge "Make toasts non-clickable"

This commit is contained in:
Bernardo Rufino
2019-10-22 18:18:06 +00:00
committed by Android (Google) Code Review

View File

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