Merge "RESTRICT AUTOMERGE Make toasts non-clickable" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1e53d56481
@@ -857,6 +857,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user