Merge "Make toasts non-clickable"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e89d5fbc10
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user