diff options
| author | 2024-12-18 00:19:24 -0800 | |
|---|---|---|
| committer | 2024-12-18 00:19:24 -0800 | |
| commit | b821194b6bfc824d6c97e85442494a1987c9b821 (patch) | |
| tree | 1b06c342789930e2d90bfcfd25bd5ebe9f3f16dd | |
| parent | 9243216c729427e97c9a2f21b8eb12dd87bcefb5 (diff) | |
Update Javadoc for setAllowPassThroughOnTouchOutside
Bug: 358130259
Change-Id: I816e01211f80595a7fa1957b1c1eb9f58f1a98e7
Test: N/A
Flag: DOCS_ONLY
| -rw-r--r-- | core/java/android/app/ActivityOptions.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityOptions.java b/core/java/android/app/ActivityOptions.java index 832c88a795e5..af6978a6b70c 100644 --- a/core/java/android/app/ActivityOptions.java +++ b/core/java/android/app/ActivityOptions.java @@ -1892,7 +1892,7 @@ public class ActivityOptions extends ComponentOptions { * app to pass through touch events to it when touches fall outside the content window. * * <p> By default, touches that fall on a translucent non-touchable area of an overlaying - * activity window are blocked from passing through to the activity below (source activity), + * activity window may be blocked from passing through to the activity below (source activity), * unless the overlaying activity is from the same UID as the source activity. The source * activity may use this method to opt in and allow the overlaying activities from the * to-be-launched app to pass through touches to itself. The source activity needs to ensure @@ -1900,6 +1900,9 @@ public class ActivityOptions extends ComponentOptions { * attacks. The flag is ignored if the context calling * {@link Context#startActivity(Intent, Bundle)} is not an activity. * + * <p> Apps with target SDK 36 and above that depend on cross-uid pass-through touches must + * opt in to ensure that pass-through touches work correctly. + * * <p> For backward compatibility, apps with target SDK 35 and below may still receive * pass-through touches without opt-in if the cross-uid activity is launched by the source * activity. |