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

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

View File

@@ -2613,6 +2613,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
attrs.hideTimeoutMilliseconds = TOAST_WINDOW_TIMEOUT;
}
attrs.windowAnimations = com.android.internal.R.style.Animation_Toast;
// Toasts can't be clickable
attrs.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
break;
}