diff options
author | Louis Chang <louischang@google.com> | 2021-12-07 10:24:52 +0800 |
---|---|---|
committer | Louis Chang <louischang@google.com> | 2021-12-07 10:51:15 +0800 |
commit | 6deec52fa975d3cdc6b5ed4a15eb3bb74b092f5c (patch) | |
tree | 89326b08de60256a2e5987c9b8d61e834dbdf74c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 3f7eca5695555863eff64a44d11befe25ad4ada5 (diff) |
Fixes re-setting activity type when embed activity in split-screen
An exception was thrown by setting the activity's type to
TYPE_UNDEFINED while the activity was already set as TYPE_STANDARD.
It happens while embedding an activity (which reparents the activity
into a TaskFragment) in split-screen.
Activity is no longer be the direct child of a leaf Task while the
activity being embedded. So, we should use WC#getActivity() vs.
checking if the task has any child while updating the activity type.
Bug: 208803173
Test: Drag settings from taskbar into split
Change-Id: Ia2e3dc251ed1908d0b088794853760c4f511138e
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions