| | | |
Offset 1, 10 lines modified | Offset 1, 46 lines modified |
| |
1 | package·androidx.fragment.app; | 1 | package·androidx.fragment.app; |
| |
| 2 | import·java.util.concurrent.CountedCompleter; |
| 3 | import·java.lang.reflect.Array; |
| 4 | import·java.util.Arrays; |
| 5 | import·java.util.Spliterator; |
| 6 | import·java.util.NoSuchElementException; |
| 7 | import·java.util.concurrent.locks.LockSupport; |
| 8 | import·sun.misc.Contended; |
| 9 | import·java.util.concurrent.locks.ReentrantLock; |
| 10 | import·java.util.function.ToIntFunction; |
| 11 | import·java.util.function.ToLongFunction; |
| 12 | import·java.util.function.ToDoubleFunction; |
| 13 | import·java.util.function.IntBinaryOperator; |
| 14 | import·java.util.function.ToIntBiFunction; |
| 15 | import·java.util.function.LongBinaryOperator; |
| 16 | import·java.util.function.ToLongBiFunction; |
| 17 | import·java.util.function.DoubleBinaryOperator; |
| 18 | import·java.util.function.ToDoubleBiFunction; |
| 19 | import·java.util.concurrent.atomic.AtomicReference; |
| 20 | import·java.util.function.Consumer; |
| 21 | import·java.util.concurrent.ForkJoinPool; |
| 22 | import·java.util.concurrent.ThreadLocalRandom; |
| 23 | import·java.util.Enumeration; |
| 24 | import·java.util.function.Function; |
| 25 | import·java.util.function.BiFunction; |
| 26 | import·java.util.function.BiConsumer; |
| 27 | import·java.io.ObjectInputStream; |
| 28 | import·java.io.IOException; |
| 29 | import·java.io.ObjectOutputStream; |
| 30 | import·java.util.Map; |
| 31 | import·java.lang.reflect.Type; |
| 32 | import·java.lang.reflect.ParameterizedType; |
| 33 | import·sun.misc.Unsafe; |
| 34 | import·java.io.ObjectStreamField; |
| 35 | import·java.io.Serializable; |
| 36 | import·java.util.concurrent.ConcurrentMap; |
| 37 | import·java.util.AbstractMap; |
2 | import·androidx.lifecycle.Lifecycle$State; | 38 | import·androidx.lifecycle.Lifecycle$State; |
3 | import·java.io.Writer; | 39 | import·java.io.Writer; |
4 | import·android.os.Parcelable; | 40 | import·android.os.Parcelable; |
5 | import·android.view.animation.Animation; | 41 | import·android.view.animation.Animation; |
6 | import·androidx.lifecycle.ViewModelStore; | 42 | import·androidx.lifecycle.ViewModelStore; |
7 | import·android.view.LayoutInflater$Factory2; | 43 | import·android.view.LayoutInflater$Factory2; |
8 | import·java.util.List; | 44 | import·java.util.List; |
Offset 33, 40 lines modified | Offset 69, 38 lines modified |
33 | import·android.animation.Animator$AnimatorListener; | 69 | import·android.animation.Animator$AnimatorListener; |
34 | import·android.view.ViewGroup; | 70 | import·android.view.ViewGroup; |
35 | import·java.util.Set; | 71 | import·java.util.Set; |
36 | import·androidx.core.os.CancellationSignal; | 72 | import·androidx.core.os.CancellationSignal; |
37 | import·java.util.HashSet; | 73 | import·java.util.HashSet; |
38 | import·java.util.Iterator; | 74 | import·java.util.Iterator; |
39 | import·androidx.collection.ArraySet; | 75 | import·androidx.collection.ArraySet; |
40 | import·java.util.Collections; | |
41 | import·java.util.HashMap; | |
42 | import·androidx.activity.result.ActivityResultLauncher; | 76 | import·androidx.activity.result.ActivityResultLauncher; |
43 | import·androidx.activity.OnBackPressedDispatcher; | 77 | import·androidx.activity.OnBackPressedDispatcher; |
44 | import·androidx.activity.OnBackPressedCallback; | 78 | import·androidx.activity.OnBackPressedCallback; |
45 | import·java.util.concurrent.CopyOnWriteArrayList; | 79 | import·java.util.concurrent.CopyOnWriteArrayList; |
46 | import·java.util.ArrayDeque; | 80 | import·java.util.ArrayDeque; |
47 | import·java.util.Map; | 81 | import·java.util.concurrent.ConcurrentHashMap; |
48 | import·java.util.concurrent.atomic.AtomicInteger; | 82 | import·java.util.concurrent.atomic.AtomicInteger; |
49 | import·java.util.ArrayList; | 83 | import·java.util.ArrayList; |
| |
50 | public·abstract·class·FragmentManager | 84 | public·abstract·class·FragmentManager |
51 | { | 85 | { |
52 | ····private·static·boolean·DEBUG·=·false; | 86 | ····private·static·boolean·DEBUG·=·false; |
53 | ····static·boolean·USE_STATE_MANAGER·=·true; | 87 | ····static·boolean·USE_STATE_MANAGER·=·false; |
54 | ····ArrayList·mBackStack; | 88 | ····ArrayList·mBackStack; |
55 | ····private·ArrayList·mBackStackChangeListeners; | 89 | ····private·ArrayList·mBackStackChangeListeners; |
56 | ····private·final·AtomicInteger·mBackStackIndex; | 90 | ····private·final·AtomicInteger·mBackStackIndex; |
57 | ····private·FragmentContainer·mContainer; | 91 | ····private·FragmentContainer·mContainer; |
58 | ····private·ArrayList·mCreatedMenus; | 92 | ····private·ArrayList·mCreatedMenus; |
59 | ····int·mCurState; | 93 | ····int·mCurState; |
60 | ····private·SpecialEffectsControllerFactory·mDefaultSpecialEffectsControllerFactory; | 94 | ····private·SpecialEffectsControllerFactory·mDefaultSpecialEffectsControllerFactory; |
61 | ····private·boolean·mDestroyed; | 95 | ····private·boolean·mDestroyed; |
62 | ····private·Runnable·mExecCommit; | 96 | ····private·Runnable·mExecCommit; |
63 | ····private·boolean·mExecutingActions; | 97 | ····private·boolean·mExecutingActions; |
64 | ····private·Map·mExitAnimationCancellationSignals; | 98 | ····private·ConcurrentHashMap·mExitAnimationCancellationSignals; |
65 | ····private·FragmentFactory·mFragmentFactory; | 99 | ····private·FragmentFactory·mFragmentFactory; |
66 | ····private·final·FragmentStore·mFragmentStore; | 100 | ····private·final·FragmentStore·mFragmentStore; |
67 | ····private·final·FragmentTransition$Callback·mFragmentTransitionCallback; | 101 | ····private·final·FragmentTransition$Callback·mFragmentTransitionCallback; |
68 | ····private·boolean·mHavePendingDeferredStart; | 102 | ····private·boolean·mHavePendingDeferredStart; |
69 | ····private·FragmentHostCallback·mHost; | 103 | ····private·FragmentHostCallback·mHost; |
70 | ····private·FragmentFactory·mHostFragmentFactory; | 104 | ····private·FragmentFactory·mHostFragmentFactory; |
71 | ····ArrayDeque·mLaunchedFragments; | 105 | ····ArrayDeque·mLaunchedFragments; |
Offset 78, 16 lines modified | Offset 112, 16 lines modified |
78 | ····private·final·OnBackPressedCallback·mOnBackPressedCallback; | 112 | ····private·final·OnBackPressedCallback·mOnBackPressedCallback; |
79 | ····private·OnBackPressedDispatcher·mOnBackPressedDispatcher; | 113 | ····private·OnBackPressedDispatcher·mOnBackPressedDispatcher; |
80 | ····private·Fragment·mParent; | 114 | ····private·Fragment·mParent; |
81 | ····private·final·ArrayList·mPendingActions; | 115 | ····private·final·ArrayList·mPendingActions; |
82 | ····private·ArrayList·mPostponedTransactions; | 116 | ····private·ArrayList·mPostponedTransactions; |
83 | ····Fragment·mPrimaryNav; | 117 | ····Fragment·mPrimaryNav; |
84 | ····private·ActivityResultLauncher·mRequestPermissions; | 118 | ····private·ActivityResultLauncher·mRequestPermissions; |
85 | ····private·final·Map·mResultListeners; | 119 | ····private·final·ConcurrentHashMap·mResultListeners; |
86 | ····private·final·Map·mResults; | 120 | ····private·final·ConcurrentHashMap·mResults; |
87 | ····private·SpecialEffectsControllerFactory·mSpecialEffectsControllerFactory; | 121 | ····private·SpecialEffectsControllerFactory·mSpecialEffectsControllerFactory; |
88 | ····private·ActivityResultLauncher·mStartActivityForResult; | 122 | ····private·ActivityResultLauncher·mStartActivityForResult; |
89 | ····private·ActivityResultLauncher·mStartIntentSenderForResult; | 123 | ····private·ActivityResultLauncher·mStartIntentSenderForResult; |
90 | ····private·boolean·mStateSaved; | 124 | ····private·boolean·mStateSaved; |
91 | ····private·boolean·mStopped; | 125 | ····private·boolean·mStopped; |
92 | ····private·ArrayList·mTmpAddedFragments; | 126 | ····private·ArrayList·mTmpAddedFragments; |
93 | ····private·ArrayList·mTmpIsPop; | 127 | ····private·ArrayList·mTmpIsPop; |
Offset 95, 17 lines modified | Offset 129, 17 lines modified |
95 | ···· | 129 | ···· |
96 | ····public·FragmentManager()·{ | 130 | ····public·FragmentManager()·{ |
97 | ········this.mPendingActions·=·new·ArrayList(); | 131 | ········this.mPendingActions·=·new·ArrayList(); |
98 | ········this.mFragmentStore·=·new·FragmentStore(); | 132 | ········this.mFragmentStore·=·new·FragmentStore(); |
99 | ········this.mLayoutInflaterFactory·=·new·FragmentLayoutInflaterFactory(this); | 133 | ········this.mLayoutInflaterFactory·=·new·FragmentLayoutInflaterFactory(this); |
100 | ········this.mOnBackPressedCallback·=·(OnBackPressedCallback)new·FragmentManager$1(this,·false); | 134 | ········this.mOnBackPressedCallback·=·(OnBackPressedCallback)new·FragmentManager$1(this,·false); |
101 | ········this.mBackStackIndex·=·new·AtomicInteger(); | 135 | ········this.mBackStackIndex·=·new·AtomicInteger(); |
102 | ········this.mResults·=·Collections.synchronizedMap(new·HashMap<Object,·Object>()); | 136 | ········this.mResults·=·new·ConcurrentHashMap(); |
103 | ········this.mResultListeners·=·Collections.synchronizedMap(new·HashMap<Object,·Object>()); | 137 | ········this.mResultListeners·=·new·ConcurrentHashMap(); |
104 | ········this.mExitAnimationCancellationSignals·=·Collections.synchronizedMap(new·HashMap<Object,·Object>()); | 138 | ········this.mExitAnimationCancellationSignals·=·new·ConcurrentHashMap(); |
105 | ········this.mFragmentTransitionCallback·=·(FragmentTransition$Callback)new·FragmentManager$2(this); | 139 | ········this.mFragmentTransitionCallback·=·(FragmentTransition$Callback)new·FragmentManager$2(this); |
106 | ········this.mLifecycleCallbacksDispatcher·=·new·FragmentLifecycleCallbacksDispatcher(this); | 140 | ········this.mLifecycleCallbacksDispatcher·=·new·FragmentLifecycleCallbacksDispatcher(this); |
107 | ········this.mOnAttachListeners·=·new·CopyOnWriteArrayList(); | 141 | ········this.mOnAttachListeners·=·new·CopyOnWriteArrayList(); |
108 | ········this.mCurState·=·-1; | 142 | ········this.mCurState·=·-1; |
109 | ········this.mFragmentFactory·=·null; | 143 | ········this.mFragmentFactory·=·null; |
110 | ········this.mHostFragmentFactory·=·(FragmentFactory)new·FragmentManager$3(this); | 144 | ········this.mHostFragmentFactory·=·(FragmentFactory)new·FragmentManager$3(this); |
111 | ········this.mSpecialEffectsControllerFactory·=·null; | 145 | ········this.mSpecialEffectsControllerFactory·=·null; |
Offset 262, 15 lines modified | Offset 296, 15 lines modified |
262 | ············this.mExecutingActions·=·mExecutingActions; | 296 | ············this.mExecutingActions·=·mExecutingActions; |
263 | ············this.mFragmentStore.dispatchStateChange(use_STATE_MANAGER); | 297 | ············this.mFragmentStore.dispatchStateChange(use_STATE_MANAGER); |
264 | ············this.moveToState(use_STATE_MANAGER,·false); | 298 | ············this.moveToState(use_STATE_MANAGER,·false); |
265 | ············use_STATE_MANAGER·=·(FragmentManager.USE_STATE_MANAGER·?·1·:·0); | 299 | ············use_STATE_MANAGER·=·(FragmentManager.USE_STATE_MANAGER·?·1·:·0); |
266 | ············if·(use_STATE_MANAGER·!=·0)·{ | 300 | ············if·(use_STATE_MANAGER·!=·0)·{ |
267 | ················final·Iterator<SpecialEffectsController>·iterator·=·this.collectAllSpecialEffectsController().iterator(); | 301 | ················final·Iterator<SpecialEffectsController>·iterator·=·this.collectAllSpecialEffectsController().iterator(); |
268 | ················while·(iterator.hasNext())·{ | 302 | ················while·(iterator.hasNext())·{ |
269 | ····················((SpecialEffectsController)iterator.next()).forceCompleteAllOperations(); | 303 | ····················((SpecialEffectsController)iterator.next()).executePendingOperations(); |
270 | ················} | 304 | ················} |
271 | ············} | 305 | ············} |
272 | ············this.mExecutingActions·=·false; | 306 | ············this.mExecutingActions·=·false; |
273 | ············this.execPendingActions(mExecutingActions); | 307 | ············this.execPendingActions(mExecutingActions); |
274 | ········} | 308 | ········} |
275 | ········finally·{ | 309 | ········finally·{ |
276 | ············this.mExecutingActions·=·false; | 310 | ············this.mExecutingActions·=·false; |
Offset 284, 15 lines modified | Offset 318, 15 lines modified |
284 | ········} | 318 | ········} |
285 | ····} | 319 | ····} |
286 | ···· | 320 | ···· |
287 | ····private·void·endAnimatingAwayFragments()·{ | 321 | ····private·void·endAnimatingAwayFragments()·{ |
288 | ········if·(FragmentManager.USE_STATE_MANAGER)·{ | 322 | ········if·(FragmentManager.USE_STATE_MANAGER)·{ |
289 | ············final·Iterator<SpecialEffectsController>·iterator·=·this.collectAllSpecialEffectsController().iterator(); | 323 | ············final·Iterator<SpecialEffectsController>·iterator·=·this.collectAllSpecialEffectsController().iterator(); |
290 | ············while·(iterator.hasNext())·{ | 324 | ············while·(iterator.hasNext())·{ |
291 | ················((SpecialEffectsController)iterator.next()).forceCompleteAllOperations(); | 325 | ················((SpecialEffectsController)iterator.next()).cancelAllOperations(); |
292 | ············} | 326 | ············} |
293 | ········} | 327 | ········} |
294 | ········else·if·(!this.mExitAnimationCancellationSignals.isEmpty())·{ | 328 | ········else·if·(!this.mExitAnimationCancellationSignals.isEmpty())·{ |
295 | ············for·(final·Fragment·fragment·:·this.mExitAnimationCancellationSignals.keySet())·{ | 329 | ············for·(final·Fragment·fragment·:·this.mExitAnimationCancellationSignals.keySet())·{ |
296 | ················this.cancelExitAnimation(fragment); | 330 | ················this.cancelExitAnimation(fragment); |
297 | ················this.moveToState(fragment); | 331 | ················this.moveToState(fragment); |
298 | ············} | 332 | ············} |
Offset 408, 38 lines modified | Offset 442, 18 lines modified |
408 | ············} | 442 | ············} |
409 | ············n6·=·n5; | 443 | ············n6·=·n5; |
410 | ········} | 444 | ········} |
411 | ········executeOps(list,·list2,·n,·n2); | 445 | ········executeOps(list,·list2,·n,·n2); |
412 | ········int·n7; | 446 | ········int·n7; |
413 | ········ArrayList<Boolean>·list3; | 447 | ········ArrayList<Boolean>·list3; |
414 | ········if·(FragmentManager.USE_STATE_MANAGER)·{ | 448 | ········if·(FragmentManager.USE_STATE_MANAGER)·{ |
415 | ············final·boolean·booleanValue·=·(boolean)list2.get(n2·-·1); | |
416 | ············if·(mReorderingAllowed)·{ | 449 | ············if·(mReorderingAllowed)·{ |
417 | ················for·(int·j·=·n;·j·<·n2;·++j)·{ | |
418 | ····················final·BackStackRecord·backStackRecord2·=·(BackStackRecord)list.get(j); | |
419 | ····················if·(booleanValue)·{ | |
420 | ························for·(int·k·=·((FragmentTransaction)backStackRecord2).mOps.size()·-·n6;·k·>=·0;·--k)·{ | |
421 | ····························final·Fragment·mFragment2·=·((FragmentTransaction$Op)((FragmentTransaction)backStackRecord2).mOps.get(k)).mFragment; | |
422 | ····························if·(mFragment2·!=·null)·{ | |
423 | ································this.createOrGetFragmentStateManager(mFragment2).moveToExpectedState(); | |
424 | ····························} | |
425 | ························} | |
426 | ····················} | |
427 | ····················else·{ | |
428 | ························final·Iterator·iterator2·=·((FragmentTransaction)backStackRecord2).mOps.iterator(); | |
429 | ························while·(iterator2.hasNext())·{ | |
430 | ····························final·Fragment·mFragment3·=·((FragmentTransaction$Op)iterator2.next()).mFragment; | |
431 | ····························if·(mFragment3·!=·null)·{ | |
432 | ································this.createOrGetFragmentStateManager(mFragment3).moveToExpectedState(); | |
433 | ····························} | |
434 | ························} | |
435 | ····················} | |
436 | ················} | |
437 | ················this.moveToState(this.mCurState,·n6·!=·0); | 450 | ················this.moveToState(this.mCurState,·n6·!=·0); |
438 | ············} | 451 | ············} |
| 452 | ············final·boolean·booleanValue·=·(boolean)list2.get(n2·-·1); |
439 | ············for·(final·SpecialEffectsController·specialEffectsController·:·this.collectChangedControllers(list,·n,·n2))·{ | 453 | ············for·(final·SpecialEffectsController·specialEffectsController·:·this.collectChangedControllers(list,·n,·n2))·{ |
440 | ················specialEffectsController.updateOperationDirection(booleanValue); | 454 | ················specialEffectsController.updateOperationDirection(booleanValue); |
441 | ················specialEffectsController.markPostponedState(); | 455 | ················specialEffectsController.markPostponedState(); |
442 | ················specialEffectsController.executePendingOperations(); | 456 | ················specialEffectsController.executePendingOperations(); |
443 | ············} | 457 | ············} |
444 | ············n7·=·n2; | 458 | ············n7·=·n2; |
445 | ············list3·=·(ArrayList<Boolean>)list2; | 459 | ············list3·=·(ArrayList<Boolean>)list2; |
Offset 491, 20 lines modified | Offset 505, 20 lines modified |
491 | ················this.moveToState(this.mCurState,·b3); | 505 | ················this.moveToState(this.mCurState,·b3); |
492 | ············} | 506 | ············} |
493 | ············else·{ | 507 | ············else·{ |
494 | ················list3·=·list4; | 508 | ················list3·=·list4; |
495 | ················n7·=·n9; | 509 | ················n7·=·n9; |
496 | ············} | 510 | ············} |
497 | ········} | 511 | ········} |
498 | ········for·(int·l·=·n;·l·<·n7;·++l)·{ | 512 | ········for·(int·j·=·n;·j·<·n7;·++j)·{ |
499 | ············final·BackStackRecord·backStackRecord3·=·(BackStackRecord)list.get(l); | 513 | ············final·BackStackRecord·backStackRecord2·=·(BackStackRecord)list.get(j); |
500 | ············if·(list3.get(l)·&&·backStackRecord3.mIndex·>=·0)·{ | 514 | ············if·(list3.get(j)·&&·backStackRecord2.mIndex·>=·0)·{ |
501 | ················backStackRecord3.mIndex·=·-1; | 515 | ················backStackRecord2.mIndex·=·-1; |
502 | ············} | 516 | ············} |
503 | ············backStackRecord3.runOnCommitRunnables(); | 517 | ············backStackRecord2.runOnCommitRunnables(); |
504 | ········} | 518 | ········} |
505 | ········if·(n3·!=·0)·{ | 519 | ········if·(n3·!=·0)·{ |
506 | ············this.reportBackStackChanged(); | 520 | ············this.reportBackStackChanged(); |
507 | ········} | 521 | ········} |
508 | ····} | 522 | ····} |
509 | ···· | 523 | ···· |
510 | ····private·void·executePostponedTransaction(final·ArrayList·list,·final·ArrayList·list2)·{ | 524 | ····private·void·executePostponedTransaction(final·ArrayList·list,·final·ArrayList·list2)·{ |
Offset 1608, 39 lines modified | Offset 1622, 39 lines modified |
1608 | ········mState·=·Math.min(mState,·fragmentStateManager.computeExpectedState()); | 1622 | ········mState·=·Math.min(mState,·fragmentStateManager.computeExpectedState()); |
1609 | ········final·int·mState2·=·fragment.mState; | 1623 | ········final·int·mState2·=·fragment.mState; |
1610 | ········final·String·s·=·"FragmentManager"; | 1624 | ········final·String·s·=·"FragmentManager"; |
1611 | ········final·int·n2·=·3; | 1625 | ········final·int·n2·=·3; |
1612 | ········final·int·n3·=·-1; | 1626 | ········final·int·n3·=·-1; |
1613 | ········final·int·n4·=·5; | 1627 | ········final·int·n4·=·5; |
1614 | ········final·int·n5·=·4; | 1628 | ········final·int·n5·=·4; |
1615 | ········Label_0756:·{ | 1629 | ········Label_0750:·{ |
1616 | ············if·(mState2·<=·mState)·{ | 1630 | ············if·(mState2·<=·mState)·{ |
1617 | ················if·(mState2·<·mState·&&·!this.mExitAnimationCancellationSignals.isEmpty())·{ | 1631 | ················if·(mState2·<·mState·&&·!this.mExitAnimationCancellationSignals.isEmpty())·{ |
1618 | ····················this.cancelExitAnimation(fragment); | 1632 | ····················this.cancelExitAnimation(fragment); |
1619 | ················} | 1633 | ················} |
1620 | ················final·int·mState3·=·fragment.mState; | 1634 | ················final·int·mState3·=·fragment.mState; |
1621 | ················Label_0286:·{ | 1635 | ················Label_0284:·{ |
1622 | ····················Label_0276:·{ | 1636 | ····················Label_0274:·{ |
1623 | ························Label_0266:·{ | 1637 | ························Label_0264:·{ |
1624 | ····························Label_0246:·{ | 1638 | ····························Label_0244:·{ |
1625 | ································if·(mState3·!=·n3)·{ | 1639 | ································if·(mState3·!=·n3)·{ |
1626 | ····································if·(mState3·!=·0)·{ | 1640 | ····································if·(mState3·!=·0)·{ |
1627 | ········································if·(mState3·==·fragmentManagerState)·{ | 1641 | ········································if·(mState3·==·fragmentManagerState)·{ |
1628 | ············································break·Label_0246; | 1642 | ············································break·Label_0244; |
1629 | ········································} | 1643 | ········································} |
1630 | ········································if·(mState3·==·n)·{ | 1644 | ········································if·(mState3·==·n)·{ |
1631 | ············································break·Label_0266; | 1645 | ············································break·Label_0264; |
1632 | ········································} | 1646 | ········································} |
1633 | ········································if·(mState3·==·n5)·{ | 1647 | ········································if·(mState3·==·n5)·{ |
1634 | ············································break·Label_0276; | 1648 | ············································break·Label_0274; |
1635 | ········································} | 1649 | ········································} |
1636 | ········································if·(mState3·!=·n4)·{ | 1650 | ········································if·(mState3·!=·n4)·{ |
1637 | ············································break·Label_0756; | 1651 | ············································break·Label_0750; |
1638 | ········································} | 1652 | ········································} |
1639 | ········································break·Label_0286; | 1653 | ········································break·Label_0284; |
1640 | ····································} | 1654 | ····································} |
1641 | ································} | 1655 | ································} |
1642 | ································else·if·(mState·>·n3)·{ | 1656 | ································else·if·(mState·>·n3)·{ |
1643 | ····································fragmentStateManager.attach(); | 1657 | ····································fragmentStateManager.attach(); |
1644 | ································} | 1658 | ································} |
1645 | ································if·(mState·>·0)·{ | 1659 | ································if·(mState·>·0)·{ |
1646 | ····································fragmentStateManager.create(); | 1660 | ····································fragmentStateManager.create(); |
Offset 1662, 23 lines modified | Offset 1676, 23 lines modified |
1662 | ····················} | 1676 | ····················} |
1663 | ················} | 1677 | ················} |
1664 | ················if·(mState·>·n4)·{ | 1678 | ················if·(mState·>·n4)·{ |
1665 | ····················fragmentStateManager.resume(); | 1679 | ····················fragmentStateManager.resume(); |
1666 | ················} | 1680 | ················} |
1667 | ············} | 1681 | ············} |
1668 | ············else·if·(mState2·>·mState)·{ | 1682 | ············else·if·(mState2·>·mState)·{ |
1669 | ················Label_0744:·{ | 1683 | ················Label_0738:·{ |
1670 | ····················if·(mState2·!=·0)·{ | 1684 | ····················if·(mState2·!=·0)·{ |
1671 | ························if·(mState2·!=·fragmentManagerState)·{ | 1685 | ························if·(mState2·!=·fragmentManagerState)·{ |
1672 | ····························if·(mState2·!=·n)·{ | 1686 | ····························if·(mState2·!=·n)·{ |
1673 | ································if·(mState2·!=·n5)·{ | 1687 | ································if·(mState2·!=·n5)·{ |
1674 | ····································if·(mState2·!=·n4)·{ | 1688 | ····································if·(mState2·!=·n4)·{ |
1675 | ········································final·int·n6·=·7; | 1689 | ········································final·int·n6·=·7; |
1676 | ········································if·(mState2·!=·n6)·{ | 1690 | ········································if·(mState2·!=·n6)·{ |
1677 | ············································break·Label_0756; | 1691 | ············································break·Label_0750; |
1678 | ········································} | 1692 | ········································} |
1679 | ········································if·(mState·<·n6)·{ | 1693 | ········································if·(mState·<·n6)·{ |
1680 | ············································fragmentStateManager.pause(); | 1694 | ············································fragmentStateManager.pause(); |
1681 | ········································} | 1695 | ········································} |
1682 | ····································} | 1696 | ····································} |
1683 | ····································if·(mState·<·n4)·{ | 1697 | ····································if·(mState·<·n4)·{ |
1684 | ········································fragmentStateManager.stop(); | 1698 | ········································fragmentStateManager.stop(); |
Offset 1724, 15 lines modified | Offset 1738, 15 lines modified |
1724 | ································if·(this.mExitAnimationCancellationSignals.get(fragment)·==·null)·{ | 1738 | ································if·(this.mExitAnimationCancellationSignals.get(fragment)·==·null)·{ |
1725 | ····································fragmentStateManager.destroyFragmentView(); | 1739 | ····································fragmentStateManager.destroyFragmentView(); |
1726 | ································} | 1740 | ································} |
1727 | ····························} | 1741 | ····························} |
1728 | ························} | 1742 | ························} |
1729 | ························if·(mState·<·fragmentManagerState)·{ | 1743 | ························if·(mState·<·fragmentManagerState)·{ |
1730 | ····························if·(this.mExitAnimationCancellationSignals.get(fragment)·!=·null)·{ | 1744 | ····························if·(this.mExitAnimationCancellationSignals.get(fragment)·!=·null)·{ |
1731 | ································break·Label_0744; | 1745 | ································break·Label_0738; |
1732 | ····························} | 1746 | ····························} |
1733 | ····························fragmentStateManager.destroy(); | 1747 | ····························fragmentStateManager.destroy(); |
1734 | ························} | 1748 | ························} |
1735 | ····················} | 1749 | ····················} |
1736 | ····················fragmentManagerState·=·mState; | 1750 | ····················fragmentManagerState·=·mState; |
1737 | ················} | 1751 | ················} |
1738 | ················if·(fragmentManagerState·<·0)·{ | 1752 | ················if·(fragmentManagerState·<·0)·{ |