Cancel current task before saving instance state

Resolve #210
This commit is contained in:
FooIbar authored and tarsin committed 2022-12-26 20:33:19 +08:00
1 parent c6682ce718
commit f73a922a8e
1 file changed
+2
@@ -790,6 +790,8 @@ public class ContentLayout extends FrameLayout {
}
protected Parcelable saveInstanceState(Parcelable superState) {
cancelCurrentTask();
Bundle bundle = new Bundle();
bundle.putParcelable(KEY_SUPER, superState);
int shownView = mViewTransition.getShownViewIndex();