Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e675486 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not allow custom animation of untrusted Toast" into tm-dev am: b5ef2c67

parents 3725ebd6 b5ef2c67
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -916,6 +916,10 @@ public class DisplayPolicy {
                        AccessibilityManager.FLAG_CONTENT_TEXT);
                // Toasts can't be clickable
                attrs.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
                // Do not allow untrusted toast to customize animation.
                if (!win.mSession.mCanAddInternalSystemWindow) {
                    attrs.windowAnimations = R.style.Animation_Toast;
                }
                break;

            case TYPE_BASE_APPLICATION: