diff options
| author | Winson Chung <winsonc@google.com> | 2017-03-24 16:22:12 -0700 |
|---|---|---|
| committer | Winson Chung <winsonc@google.com> | 2017-03-27 13:34:53 -0700 |
| commit | 6954fc9a7e6b2c6fc0b09448beac2eba7852ff18 (patch) | |
| tree | e038f70eb0b49cf174b448332d620141fbd1f5e3 /core/java/android/app/ActivityOptions.java | |
| parent | af4bb6864fc377e3fe243f9d57f7dbbe22ef84e7 (diff) | |
Fix issue with task overlay activities not finishing.
- The task overlay activity should only exist when there are activities
present in the task. When the last such activity is finished, we should
remove the whole task entirely including the task overlay.
- Exposing the task overlay apis to CTS
Bug: 36507456
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testFinishPipActivityWithTaskOverlay
Change-Id: I1dabe7782fb6769a90d832664e8052be158041e1
Diffstat (limited to 'core/java/android/app/ActivityOptions.java')
| -rw-r--r-- | core/java/android/app/ActivityOptions.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityOptions.java b/core/java/android/app/ActivityOptions.java index 0b9479d8b52e..aa7cdf7b475e 100644 --- a/core/java/android/app/ActivityOptions.java +++ b/core/java/android/app/ActivityOptions.java @@ -1068,6 +1068,7 @@ public class ActivityOptions { * Sets the task the activity will be launched in. * @hide */ + @TestApi public void setLaunchTaskId(int taskId) { mLaunchTaskId = taskId; } @@ -1085,6 +1086,7 @@ public class ActivityOptions { * the task will also not be moved to the front of the stack. * @hide */ + @TestApi public void setTaskOverlay(boolean taskOverlay, boolean canResume) { mTaskOverlay = taskOverlay; mTaskOverlayCanResume = canResume; |
