summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2025-05-16 11:59:46 +0800
committeraoleary <seanm187@gmail.com>2025-10-07 18:57:45 +0000
commit417170e1b6b559ed57b705b0683506175a2969e1 (patch)
tree0c081711906539a7a76b2672cb9451796da44ffc /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentabe87a11622ea2e84e678a53c9973c561c72f032 (diff)
Do not allow custom animation of untrusted Toast
Since target API level 30 (Android 11), regular text toast is shown by SystemUI (See#CHANGE_TEXT_TOASTS_IN_THE_SYSTEM). While legacy apps and deprecated custom view show the toast in its own processes, so force the default animation style for these usages to avoid unexpected animation duration. Such when setForceHideNonSystemOverlayWindowIfNeeded is triggered, the regular Toast displayed by SystemUI won't be affected (because SystemUI has internal permission), and the untrusted Toast can be hidden in a short time (config_longAnimTime=500ms) instead of a customized duration. Bug: 408215749 Flag: EXEMPT bugfix Test: Show a Toast with modified WindowManager.LayoutParams#windowAnimations (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:aeca871e495b6f6481fb445cb74d8afaaa8d2376) Merged-In: Ib2844dedebfa3ec9fc8333af3f66bb07cd4d3d7f Change-Id: Ib2844dedebfa3ec9fc8333af3f66bb07cd4d3d7f Change-Id: I5e59b588ae5bc2eb3db6dcf7f5101a6e79084737
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions