summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author pioush.kumar-IN009423 <pioush.kumar@oppo.com> 2023-03-07 11:04:55 +0530
committer pioush.kumar-IN009423 <pioush.kumar@oppo.com> 2023-03-07 11:57:15 +0530
commit9e498372e27e30cb5e84fe98823006e415f48a8f (patch)
treeeca81f62702be1d64174804f6e5d10815efa3866 /libs/androidfw/StringPool.cpp
parent5cd5d98eb7d309198f5902d7c26f6aae71315fd7 (diff)
Youtube application when moving to PIP animation was very bad
Problem: { 1. Start any new task with activity A 2. From Activity A start new activity B. Finish A. B must be single task. 3. B must be auto pip enabled. ( private final PictureInPictureParams.Builder mPipParamsBuilder = new PictureInPictureParams.Builder() .setAspectRatio(null); setPictureInPictureParams(mPipParamsBuilder.setAutoEnterEnabled(true).build()); ) 4. start activity C from B with flags { Intent intent = new Intent(MainActivity.this, com.example.pip.MainActivity.class); intent.addFlags(FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS|FLAG_ACTIVITY_PREVIOUS_IS_TOP); startActivity(intent); } 5. B will move to PIP. 6. Now press back key on C. 7. Now open recents. 8. Try to open same app. 9. App will automatically close } Solution: { 1. there are 2 tasks. One is PIP task and one is its parent task, in which dialog is opened. 2. Parent task has a variable mPipChildActiivty which points to PIP activity and 3. PIP task mLastParentBeforePip which points to Parent task. Both works in pairs 4. But in this issue parent task is removed. 5. But the mPipChildActiivty and mLastParentBeforePip are not dereferenced. 6. Dereference the both variables when task is removed. } Bug: 265123000 Change-Id: Iccb6a101b6631eb6bc265ca30a299ced2ee2f5dd Signed-off-by: pioush.kumar-IN009423 <pioush.kumar@oppo.com>
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions