summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
diff options
context:
space:
mode:
authorRicky Wai <rickywai@google.com>2020-10-14 11:37:46 +0100
committerRicky Wai <rickywai@google.com>2020-10-27 11:18:37 +0000
commit9268360c70ebdf48d08f00cbb64a66166f1d8e07 (patch)
tree94faee3aa37ddc77f717cfa4f6eb81e2583fee74 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
parent69bca6a5132e9e00dd069ab4c2e1e17d892fab7d (diff)
Introduce Background Activity Launch home mode
Background activity launch home mode will replace existing app switch protection logic. After user processing home button, all normal apps, including ui visible apps, will no longer able to start background activity even its within grace period, except the apps that have permission to start background activity. This will stop apps try to start itself during onPause() after pressing home button. It removes the pending activity queue in the origianl apps switching protection due to confusing UX. Also, it removes the logic that stop app switching protection after 5 second timeout. Bug: 159433730 Test: Create an app that startActivity in onPause(), then click home button. Activity can be started in its background task but not a new foreground task. Test: Create an app and enter pip mode in background and start new activity task. After pressing home button, apps can enter pip mode but cannot create a new task. Change-Id: Iaa77daba2fbce68f65a60ca71969c3f18bac3684
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions