| | | |
Offset 3, 48 lines modified | Offset 3, 47 lines modified |
| |
3 | import·android.os.Looper; | 3 | import·android.os.Looper; |
4 | import·android.os.Parcelable; | 4 | import·android.os.Parcelable; |
5 | import·androidx.savedstate.ViewTreeSavedStateRegistryOwner; | 5 | import·androidx.savedstate.ViewTreeSavedStateRegistryOwner; |
6 | import·androidx.lifecycle.ViewTreeViewModelStoreOwner; | 6 | import·androidx.lifecycle.ViewTreeViewModelStoreOwner; |
7 | import·androidx.lifecycle.ViewTreeLifecycleOwner; | 7 | import·androidx.lifecycle.ViewTreeLifecycleOwner; |
8 | import·androidx.lifecycle.Lifecycle$Event; | 8 | import·androidx.lifecycle.Lifecycle$Event; |
9 | import·androidx.lifecycle.LifecycleObserver; | |
10 | import·android.os.Build$VERSION; | |
11 | import·java.util.Iterator; | |
12 | import·android.util.AttributeSet; | 9 | import·android.util.AttributeSet; |
13 | import·android.view.MenuInflater; | 10 | import·android.view.MenuInflater; |
14 | import·android.view.Menu; | 11 | import·android.view.Menu; |
15 | import·android.view.ContextMenu$ContextMenuInfo; | 12 | import·android.view.ContextMenu$ContextMenuInfo; |
16 | import·android.view.ContextMenu; | 13 | import·android.view.ContextMenu; |
17 | import·android.view.animation.Animation; | 14 | import·android.view.animation.Animation; |
18 | import·android.view.MenuItem; | 15 | import·android.view.MenuItem; |
19 | import·android.content.res.Configuration; | 16 | import·android.content.res.Configuration; |
20 | import·android.app.Activity; | 17 | import·android.app.Activity; |
21 | import·android.content.Intent; | 18 | import·android.content.Intent; |
22 | import·androidx.lifecycle.ViewModelStore; | 19 | import·androidx.lifecycle.ViewModelStore; |
| 20 | import·java.util.ArrayList; |
23 | import·androidx.savedstate.SavedStateRegistry; | 21 | import·androidx.savedstate.SavedStateRegistry; |
24 | import·android.content.res.Resources; | 22 | import·android.content.res.Resources; |
25 | import·androidx.lifecycle.Lifecycle; | 23 | import·androidx.lifecycle.Lifecycle; |
26 | import·androidx.core.view.LayoutInflaterCompat; | 24 | import·androidx.core.view.LayoutInflaterCompat; |
27 | import·androidx.core.app.SharedElementCallback; | 25 | import·androidx.core.app.SharedElementCallback; |
28 | import·android.animation.Animator; | 26 | import·android.animation.Animator; |
29 | import·androidx.loader.app.LoaderManager; | 27 | import·androidx.loader.app.LoaderManager; |
30 | import·java.io.PrintWriter; | 28 | import·java.io.PrintWriter; |
31 | import·java.io.FileDescriptor; | 29 | import·java.io.FileDescriptor; |
32 | import·android.util.Log; | 30 | import·android.util.Log; |
33 | import·java.lang.reflect.Constructor; | 31 | import·java.lang.reflect.Constructor; |
34 | import·java.lang.reflect.InvocationTargetException; | 32 | import·java.lang.reflect.InvocationTargetException; |
35 | import·android.content.Context; | 33 | import·android.content.Context; |
36 | import·java.util.concurrent.atomic.AtomicInteger; | 34 | import·androidx.lifecycle.LifecycleObserver; |
| 35 | import·android.os.Build$VERSION; |
37 | import·java.util.UUID; | 36 | import·java.util.UUID; |
38 | import·androidx.lifecycle.MutableLiveData; | 37 | import·androidx.lifecycle.MutableLiveData; |
39 | import·android.view.View; | 38 | import·android.view.View; |
40 | import·android.util.SparseArray; | 39 | import·android.util.SparseArray; |
41 | import·androidx.savedstate.SavedStateRegistryController; | 40 | import·androidx.savedstate.SavedStateRegistryController; |
42 | import·java.util.ArrayList; | 41 | import·java.util.concurrent.atomic.AtomicInteger; |
43 | import·androidx.lifecycle.Lifecycle$State; | 42 | import·androidx.lifecycle.Lifecycle$State; |
44 | import·androidx.lifecycle.LifecycleRegistry; | 43 | import·androidx.lifecycle.LifecycleRegistry; |
45 | import·android.view.LayoutInflater; | 44 | import·android.view.LayoutInflater; |
46 | import·android.view.ViewGroup; | 45 | import·android.view.ViewGroup; |
47 | import·android.os.Bundle; | 46 | import·android.os.Bundle; |
48 | import·androidx.savedstate.SavedStateRegistryOwner; | 47 | import·androidx.savedstate.SavedStateRegistryOwner; |
49 | import·androidx.lifecycle.ViewModelStoreOwner; | 48 | import·androidx.lifecycle.ViewModelStoreOwner; |
Offset 77, 15 lines modified | Offset 76, 15 lines modified |
77 | ····boolean·mIsCreated; | 76 | ····boolean·mIsCreated; |
78 | ····boolean·mIsNewlyAdded; | 77 | ····boolean·mIsNewlyAdded; |
79 | ····private·Boolean·mIsPrimaryNavigationFragment; | 78 | ····private·Boolean·mIsPrimaryNavigationFragment; |
80 | ····LayoutInflater·mLayoutInflater; | 79 | ····LayoutInflater·mLayoutInflater; |
81 | ····LifecycleRegistry·mLifecycleRegistry; | 80 | ····LifecycleRegistry·mLifecycleRegistry; |
82 | ····Lifecycle$State·mMaxState; | 81 | ····Lifecycle$State·mMaxState; |
83 | ····boolean·mMenuVisible; | 82 | ····boolean·mMenuVisible; |
84 | ····private·final·ArrayList·mOnPreAttachedListeners; | 83 | ····private·final·AtomicInteger·mNextLocalRequestCode; |
85 | ····Fragment·mParentFragment; | 84 | ····Fragment·mParentFragment; |
86 | ····boolean·mPerformedCreateView; | 85 | ····boolean·mPerformedCreateView; |
87 | ····float·mPostponedAlpha; | 86 | ····float·mPostponedAlpha; |
88 | ····boolean·mRemoving; | 87 | ····boolean·mRemoving; |
89 | ····boolean·mRestored; | 88 | ····boolean·mRestored; |
90 | ····boolean·mRetainInstance; | 89 | ····boolean·mRetainInstance; |
91 | ····boolean·mRetainInstanceChangedWhileDetached; | 90 | ····boolean·mRetainInstanceChangedWhileDetached; |
Offset 116, 29 lines modified | Offset 115, 31 lines modified |
116 | ········this.mIsPrimaryNavigationFragment·=·null; | 115 | ········this.mIsPrimaryNavigationFragment·=·null; |
117 | ········this.mChildFragmentManager·=·(FragmentManager)new·FragmentManagerImpl(); | 116 | ········this.mChildFragmentManager·=·(FragmentManager)new·FragmentManagerImpl(); |
118 | ········final·boolean·b·=·true; | 117 | ········final·boolean·b·=·true; |
119 | ········this.mMenuVisible·=·b; | 118 | ········this.mMenuVisible·=·b; |
120 | ········this.mUserVisibleHint·=·b; | 119 | ········this.mUserVisibleHint·=·b; |
121 | ········this.mMaxState·=·Lifecycle$State.RESUMED; | 120 | ········this.mMaxState·=·Lifecycle$State.RESUMED; |
122 | ········this.mViewLifecycleOwnerLiveData·=·new·MutableLiveData(); | 121 | ········this.mViewLifecycleOwnerLiveData·=·new·MutableLiveData(); |
| 122 | ········this.mNextLocalRequestCode·=·new·AtomicInteger(); |
123 | ········new·AtomicInteger(); | |
124 | ········this.mOnPreAttachedListeners·=·new·ArrayList(); | |
125 | ········this.initLifecycle(); | 123 | ········this.initLifecycle(); |
126 | ····} | 124 | ····} |
127 | ···· | 125 | ···· |
128 | ····private·Fragment$AnimationInfo·ensureAnimationInfo()·{ | 126 | ····private·Fragment$AnimationInfo·ensureAnimationInfo()·{ |
129 | ········if·(this.mAnimationInfo·==·null)·{ | 127 | ········if·(this.mAnimationInfo·==·null)·{ |
130 | ············this.mAnimationInfo·=·new·Fragment$AnimationInfo(); | 128 | ············this.mAnimationInfo·=·new·Fragment$AnimationInfo(); |
131 | ········} | 129 | ········} |
132 | ········return·this.mAnimationInfo; | 130 | ········return·this.mAnimationInfo; |
133 | ····} | 131 | ····} |
134 | ···· | 132 | ···· |
135 | ····private·void·initLifecycle()·{ | 133 | ····private·void·initLifecycle()·{ |
136 | ········this.mLifecycleRegistry·=·new·LifecycleRegistry((LifecycleOwner)this); | 134 | ········this.mLifecycleRegistry·=·new·LifecycleRegistry((LifecycleOwner)this); |
137 | ········this.mSavedStateRegistryController·=·SavedStateRegistryController.create((SavedStateRegistryOwner)this); | 135 | ········this.mSavedStateRegistryController·=·SavedStateRegistryController.create((SavedStateRegistryOwner)this); |
| 136 | ········if·(Build$VERSION.SDK_INT·>=·19)·{ |
| 137 | ············this.mLifecycleRegistry.addObserver((LifecycleObserver)new·Fragment$2(this)); |
| 138 | ········} |
138 | ····} | 139 | ····} |
139 | ···· | 140 | ···· |
140 | ····public·static·Fragment·instantiate(final·Context·context,·String·s,·final·Bundle·arguments)·{ | 141 | ····public·static·Fragment·instantiate(final·Context·context,·String·s,·final·Bundle·arguments)·{ |
141 | ········final·String·s2·=·":·make·sure·class·name·exists,·is·public,·and·has·an·empty·constructor·that·is·public"; | 142 | ········final·String·s2·=·":·make·sure·class·name·exists,·is·public,·and·has·an·empty·constructor·that·is·public"; |
142 | ········final·String·s3·=·"Unable·to·instantiate·fragment·"; | 143 | ········final·String·s3·=·"Unable·to·instantiate·fragment·"; |
143 | ········try·{ | 144 | ········try·{ |
144 | ············final·Constructor<Fragment>·constructor·=·FragmentFactory.loadFragmentClass(context.getClassLoader(),·s).getConstructor((Class<?>[])new·Class[0]); | 145 | ············final·Constructor<Fragment>·constructor·=·FragmentFactory.loadFragmentClass(context.getClassLoader(),·s).getConstructor((Class<?>[])new·Class[0]); |
Offset 220, 15 lines modified | Offset 221, 15 lines modified |
220 | ········} | 221 | ········} |
221 | ········if·(this.mView·!=·null)·{ | 222 | ········if·(this.mView·!=·null)·{ |
222 | ············this.restoreViewState(this.mSavedFragmentState); | 223 | ············this.restoreViewState(this.mSavedFragmentState); |
223 | ········} | 224 | ········} |
224 | ········this.mSavedFragmentState·=·null; | 225 | ········this.mSavedFragmentState·=·null; |
225 | ····} | 226 | ····} |
226 | ···· | 227 | ···· |
227 | ····void·callStartTransitionListener(final·boolean·b)·{ | 228 | ····void·callStartTransitionListener()·{ |
228 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; | 229 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; |
229 | ········Fragment$OnStartEnterTransitionListener·fragment$OnStartEnterTransitionListener·=·null; | 230 | ········Fragment$OnStartEnterTransitionListener·fragment$OnStartEnterTransitionListener·=·null; |
230 | ········if·(mAnimationInfo·!=·null)·{ | 231 | ········if·(mAnimationInfo·!=·null)·{ |
231 | ············mAnimationInfo.mEnterTransitionPostponed·=·false; | 232 | ············mAnimationInfo.mEnterTransitionPostponed·=·false; |
232 | ············final·Fragment$OnStartEnterTransitionListener·mStartEnterTransitionListener·=·mAnimationInfo.mStartEnterTransitionListener; | 233 | ············final·Fragment$OnStartEnterTransitionListener·mStartEnterTransitionListener·=·mAnimationInfo.mStartEnterTransitionListener; |
233 | ············mAnimationInfo.mStartEnterTransitionListener·=·null; | 234 | ············mAnimationInfo.mStartEnterTransitionListener·=·null; |
234 | ············fragment$OnStartEnterTransitionListener·=·mStartEnterTransitionListener; | 235 | ············fragment$OnStartEnterTransitionListener·=·mStartEnterTransitionListener; |
Offset 239, 20 lines modified | Offset 240, 15 lines modified |
239 | ········else·if·(FragmentManager.USE_STATE_MANAGER·&&·this.mView·!=·null)·{ | 240 | ········else·if·(FragmentManager.USE_STATE_MANAGER·&&·this.mView·!=·null)·{ |
240 | ············final·ViewGroup·mContainer·=·this.mContainer; | 241 | ············final·ViewGroup·mContainer·=·this.mContainer; |
241 | ············if·(mContainer·!=·null)·{ | 242 | ············if·(mContainer·!=·null)·{ |
242 | ················final·FragmentManager·mFragmentManager·=·this.mFragmentManager; | 243 | ················final·FragmentManager·mFragmentManager·=·this.mFragmentManager; |
243 | ················if·(mFragmentManager·!=·null)·{ | 244 | ················if·(mFragmentManager·!=·null)·{ |
244 | ····················final·SpecialEffectsController·orCreateController·=·SpecialEffectsController.getOrCreateController(mContainer,·mFragmentManager); | 245 | ····················final·SpecialEffectsController·orCreateController·=·SpecialEffectsController.getOrCreateController(mContainer,·mFragmentManager); |
245 | ····················orCreateController.markPostponedState(); | 246 | ····················orCreateController.markPostponedState(); |
246 | ····················if·(b)·{ | |
247 | ························this.mHost.getHandler().post((Runnable)new·Fragment$3(this,·orCreateController)); | |
248 | ····················} | |
249 | ····················else·{ | |
250 | ························orCreateController.executePendingOperations(); | 247 | ····················orCreateController.executePendingOperations(); |
251 | ····················} | |
252 | ················} | 248 | ················} |
253 | ············} | 249 | ············} |
254 | ········} | 250 | ········} |
255 | ····} | 251 | ····} |
256 | ···· | 252 | ···· |
257 | ····FragmentContainer·createFragmentContainer()·{ | 253 | ····FragmentContainer·createFragmentContainer()·{ |
258 | ········return·(FragmentContainer)new·Fragment$4(this); | 254 | ········return·(FragmentContainer)new·Fragment$4(this); |
Offset 383, 14 lines modified | Offset 379, 23 lines modified |
383 | ····Fragment·findFragmentByWho(final·String·s)·{ | 379 | ····Fragment·findFragmentByWho(final·String·s)·{ |
384 | ········if·(s.equals(this.mWho))·{ | 380 | ········if·(s.equals(this.mWho))·{ |
385 | ············return·this; | 381 | ············return·this; |
386 | ········} | 382 | ········} |
387 | ········return·this.mChildFragmentManager.findFragmentByWho(s); | 383 | ········return·this.mChildFragmentManager.findFragmentByWho(s); |
388 | ····} | 384 | ····} |
389 | ···· | 385 | ···· |
| 386 | ····String·generateActivityResultKey()·{ |
| 387 | ········final·StringBuilder·sb·=·new·StringBuilder(); |
| 388 | ········sb.append("fragment_"); |
| 389 | ········sb.append(this.mWho); |
| 390 | ········sb.append("_rq#"); |
| 391 | ········sb.append(this.mNextLocalRequestCode.getAndIncrement()); |
| 392 | ········return·sb.toString(); |
| 393 | ····} |
| 394 | ···· |
390 | ····public·final·FragmentActivity·getActivity()·{ | 395 | ····public·final·FragmentActivity·getActivity()·{ |
391 | ········final·FragmentHostCallback·mHost·=·this.mHost; | 396 | ········final·FragmentHostCallback·mHost·=·this.mHost; |
392 | ········FragmentActivity·fragmentActivity; | 397 | ········FragmentActivity·fragmentActivity; |
393 | ········if·(mHost·==·null)·{ | 398 | ········if·(mHost·==·null)·{ |
394 | ············fragmentActivity·=·null; | 399 | ············fragmentActivity·=·null; |
395 | ········} | 400 | ········} |
396 | ········else·{ | 401 | ········else·{ |
Offset 488, 22 lines modified | Offset 493, 14 lines modified |
488 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; | 493 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; |
489 | ········if·(mAnimationInfo·==·null)·{ | 494 | ········if·(mAnimationInfo·==·null)·{ |
490 | ············return·null; | 495 | ············return·null; |
491 | ········} | 496 | ········} |
492 | ········return·mAnimationInfo.mExitTransitionCallback; | 497 | ········return·mAnimationInfo.mExitTransitionCallback; |
493 | ····} | 498 | ····} |
494 | ···· | 499 | ···· |
495 | ····View·getFocusedView()·{ | |
496 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; | |
497 | ········if·(mAnimationInfo·==·null)·{ | |
498 | ············return·null; | |
499 | ········} | |
500 | ········return·mAnimationInfo.mFocusedView; | |
501 | ····} | |
502 | ···· | |
503 | ····public·final·Object·getHost()·{ | 500 | ····public·final·Object·getHost()·{ |
504 | ········final·FragmentHostCallback·mHost·=·this.mHost; | 501 | ········final·FragmentHostCallback·mHost·=·this.mHost; |
505 | ········Object·onGetHost; | 502 | ········Object·onGetHost; |
506 | ········if·(mHost·==·null)·{ | 503 | ········if·(mHost·==·null)·{ |
507 | ············onGetHost·=·null; | 504 | ············onGetHost·=·null; |
508 | ········} | 505 | ········} |
509 | ········else·{ | 506 | ········else·{ |
Offset 554, 22 lines modified | Offset 551, 14 lines modified |
554 | ········final·StringBuilder·sb·=·new·StringBuilder(); | 551 | ········final·StringBuilder·sb·=·new·StringBuilder(); |
555 | ········sb.append("Fragment·"); | 552 | ········sb.append("Fragment·"); |
556 | ········sb.append(this); | 553 | ········sb.append(this); |
557 | ········sb.append("·not·associated·with·a·fragment·manager."); | 554 | ········sb.append("·not·associated·with·a·fragment·manager."); |
558 | ········throw·new·IllegalStateException(sb.toString()); | 555 | ········throw·new·IllegalStateException(sb.toString()); |
559 | ····} | 556 | ····} |
560 | ···· | 557 | ···· |
561 | ····int·getPostOnViewCreatedVisibility()·{ | |
562 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; | |
563 | ········if·(mAnimationInfo·==·null)·{ | |
564 | ············return·0; | |
565 | ········} | |
566 | ········return·mAnimationInfo.mPostOnViewCreatedVisibility; | |
567 | ····} | |
568 | ···· | |
569 | ····public·Object·getReenterTransition()·{ | 558 | ····public·Object·getReenterTransition()·{ |
570 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; | 559 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; |
571 | ········if·(mAnimationInfo·==·null)·{ | 560 | ········if·(mAnimationInfo·==·null)·{ |
572 | ············return·null; | 561 | ············return·null; |
573 | ········} | 562 | ········} |
574 | ········Object·o·=·mAnimationInfo.mReenterTransition; | 563 | ········Object·o·=·mAnimationInfo.mReenterTransition; |
575 | ········if·(o·==·Fragment.USE_DEFAULT_TRANSITION)·{ | 564 | ········if·(o·==·Fragment.USE_DEFAULT_TRANSITION)·{ |
Offset 736, 27 lines modified | Offset 725, 15 lines modified |
736 | ········this.mChildFragmentManager.noteStateNotSaved(); | 725 | ········this.mChildFragmentManager.noteStateNotSaved(); |
737 | ····} | 726 | ····} |
738 | ···· | 727 | ···· |
739 | ····public·void·onActivityCreated(final·Bundle·bundle)·{ | 728 | ····public·void·onActivityCreated(final·Bundle·bundle)·{ |
740 | ········this.mCalled·=·true; | 729 | ········this.mCalled·=·true; |
741 | ····} | 730 | ····} |
742 | ···· | 731 | ···· |
743 | ····public·void·onActivityResult(final·int·i,·final·int·j,·final·Intent·obj)·{ | 732 | ····public·void·onActivityResult(final·int·n,·final·int·n2,·final·Intent·intent)·{ |
744 | ········if·(FragmentManager.isLoggingEnabled(2))·{ | |
745 | ············final·StringBuilder·sb·=·new·StringBuilder(); | |
746 | ············sb.append("Fragment·"); | |
747 | ············sb.append(this); | |
748 | ············sb.append("·received·the·following·in·onActivityResult():·requestCode:·"); | |
749 | ············sb.append(i); | |
750 | ············sb.append("·resultCode:·"); | |
751 | ············sb.append(j); | |
752 | ············sb.append("·data:·"); | |
753 | ············sb.append(obj); | |
754 | ············Log.v("FragmentManager",·sb.toString()); | |
755 | ········} | |
756 | ····} | 733 | ····} |
757 | ···· | 734 | ···· |
758 | ····public·void·onAttach(final·Activity·activity)·{ | 735 | ····public·void·onAttach(final·Activity·activity)·{ |
759 | ········this.mCalled·=·true; | 736 | ········this.mCalled·=·true; |
760 | ····} | 737 | ····} |
761 | ···· | 738 | ···· |
762 | ····public·void·onAttach(final·Context·context)·{ | 739 | ····public·void·onAttach(final·Context·context)·{ |
Offset 926, 19 lines modified | Offset 903, 14 lines modified |
926 | ········sb.append("Fragment·"); | 903 | ········sb.append("Fragment·"); |
927 | ········sb.append(this); | 904 | ········sb.append(this); |
928 | ········sb.append("·did·not·call·through·to·super.onActivityCreated()"); | 905 | ········sb.append("·did·not·call·through·to·super.onActivityCreated()"); |
929 | ········throw·new·SuperNotCalledException(sb.toString()); | 906 | ········throw·new·SuperNotCalledException(sb.toString()); |
930 | ····} | 907 | ····} |
931 | ···· | 908 | ···· |
932 | ····void·performAttach()·{ | 909 | ····void·performAttach()·{ |
933 | ········final·Iterator<Fragment$OnPreAttachedListener>·iterator·=·this.mOnPreAttachedListeners.iterator(); | |
934 | ········while·(iterator.hasNext())·{ | |
935 | ············((Fragment$OnPreAttachedListener)iterator.next()).onPreAttached(); | |
936 | ········} | |
937 | ········this.mOnPreAttachedListeners.clear(); | |
938 | ········this.mChildFragmentManager.attachController(this.mHost,·this.createFragmentContainer(),·this); | 910 | ········this.mChildFragmentManager.attachController(this.mHost,·this.createFragmentContainer(),·this); |
939 | ········this.mState·=·0; | 911 | ········this.mState·=·0; |
940 | ········this.mCalled·=·false; | 912 | ········this.mCalled·=·false; |
941 | ········this.onAttach(this.mHost.getContext()); | 913 | ········this.onAttach(this.mHost.getContext()); |
942 | ········if·(this.mCalled)·{ | 914 | ········if·(this.mCalled)·{ |
943 | ············this.mFragmentManager.dispatchOnAttachFragment(this); | 915 | ············this.mFragmentManager.dispatchOnAttachFragment(this); |
944 | ············this.mChildFragmentManager.dispatchAttach(); | 916 | ············this.mChildFragmentManager.dispatchAttach(); |
Offset 961, 17 lines modified | Offset 933, 14 lines modified |
961 | ····} | 933 | ····} |
962 | ···· | 934 | ···· |
963 | ····void·performCreate(final·Bundle·bundle)·{ | 935 | ····void·performCreate(final·Bundle·bundle)·{ |
964 | ········this.mChildFragmentManager.noteStateNotSaved(); | 936 | ········this.mChildFragmentManager.noteStateNotSaved(); |
965 | ········final·boolean·b·=·true; | 937 | ········final·boolean·b·=·true; |
966 | ········this.mState·=·(b·?·1·:·0); | 938 | ········this.mState·=·(b·?·1·:·0); |
967 | ········this.mCalled·=·false; | 939 | ········this.mCalled·=·false; |
968 | ········if·(Build$VERSION.SDK_INT·>=·19)·{ | |
969 | ············this.mLifecycleRegistry.addObserver((LifecycleObserver)new·Fragment$5(this)); | |
970 | ········} | |
971 | ········this.mSavedStateRegistryController.performRestore(bundle); | 940 | ········this.mSavedStateRegistryController.performRestore(bundle); |
972 | ········this.onCreate(bundle); | 941 | ········this.onCreate(bundle); |
973 | ········this.mIsCreated·=·b; | 942 | ········this.mIsCreated·=·b; |
974 | ········if·(this.mCalled)·{ | 943 | ········if·(this.mCalled)·{ |
975 | ············this.mLifecycleRegistry.handleLifecycleEvent(Lifecycle$Event.ON_CREATE); | 944 | ············this.mLifecycleRegistry.handleLifecycleEvent(Lifecycle$Event.ON_CREATE); |
976 | ············return; | 945 | ············return; |
977 | ········} | 946 | ········} |
Offset 1303, 18 lines modified | Offset 1272, 14 lines modified |
1303 | ····public·void·setArguments(final·Bundle·mArguments)·{ | 1272 | ····public·void·setArguments(final·Bundle·mArguments)·{ |
1304 | ········if·(this.mFragmentManager·!=·null·&&·this.isStateSaved())·{ | 1273 | ········if·(this.mFragmentManager·!=·null·&&·this.isStateSaved())·{ |
1305 | ············throw·new·IllegalStateException("Fragment·already·added·and·state·has·been·saved"); | 1274 | ············throw·new·IllegalStateException("Fragment·already·added·and·state·has·been·saved"); |
1306 | ········} | 1275 | ········} |
1307 | ········this.mArguments·=·mArguments; | 1276 | ········this.mArguments·=·mArguments; |
1308 | ····} | 1277 | ····} |
1309 | ···· | 1278 | ···· |
1310 | ····void·setFocusedView(final·View·mFocusedView)·{ | |
1311 | ········this.ensureAnimationInfo().mFocusedView·=·mFocusedView; | |
1312 | ····} | |
1313 | ···· | |
1314 | ····void·setHideReplaced(final·boolean·mIsHideReplaced)·{ | 1279 | ····void·setHideReplaced(final·boolean·mIsHideReplaced)·{ |
1315 | ········this.ensureAnimationInfo().mIsHideReplaced·=·mIsHideReplaced; | 1280 | ········this.ensureAnimationInfo().mIsHideReplaced·=·mIsHideReplaced; |
1316 | ····} | 1281 | ····} |
1317 | ···· | 1282 | ···· |
1318 | ····void·setNextAnim(final·int·mNextAnim)·{ | 1283 | ····void·setNextAnim(final·int·mNextAnim)·{ |
1319 | ········if·(this.mAnimationInfo·==·null·&&·mNextAnim·==·0)·{ | 1284 | ········if·(this.mAnimationInfo·==·null·&&·mNextAnim·==·0)·{ |
1320 | ············return; | 1285 | ············return; |
Offset 1347, 36 lines modified | Offset 1312, 32 lines modified |
1347 | ············mAnimationInfo.mStartEnterTransitionListener·=·mStartEnterTransitionListener; | 1312 | ············mAnimationInfo.mStartEnterTransitionListener·=·mStartEnterTransitionListener; |
1348 | ········} | 1313 | ········} |
1349 | ········if·(mStartEnterTransitionListener·!=·null)·{ | 1314 | ········if·(mStartEnterTransitionListener·!=·null)·{ |
1350 | ············mStartEnterTransitionListener.startListening(); | 1315 | ············mStartEnterTransitionListener.startListening(); |
1351 | ········} | 1316 | ········} |
1352 | ····} | 1317 | ····} |
1353 | ···· | 1318 | ···· |
1354 | ····void·setPostOnViewCreatedVisibility(final·int·mPostOnViewCreatedVisibility)·{ | |
1355 | ········this.ensureAnimationInfo().mPostOnViewCreatedVisibility·=·mPostOnViewCreatedVisibility; | |
1356 | ····} | |
1357 | ···· | |
1358 | ····void·setSharedElementNames(final·ArrayList·mSharedElementSourceNames,·final·ArrayList·mSharedElementTargetNames)·{ | 1319 | ····void·setSharedElementNames(final·ArrayList·mSharedElementSourceNames,·final·ArrayList·mSharedElementTargetNames)·{ |
1359 | ········this.ensureAnimationInfo(); | 1320 | ········this.ensureAnimationInfo(); |
1360 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; | 1321 | ········final·Fragment$AnimationInfo·mAnimationInfo·=·this.mAnimationInfo; |
1361 | ········mAnimationInfo.mSharedElementSourceNames·=·mSharedElementSourceNames; | 1322 | ········mAnimationInfo.mSharedElementSourceNames·=·mSharedElementSourceNames; |
1362 | ········mAnimationInfo.mSharedElementTargetNames·=·mSharedElementTargetNames; | 1323 | ········mAnimationInfo.mSharedElementTargetNames·=·mSharedElementTargetNames; |
1363 | ····} | 1324 | ····} |
1364 | ···· | 1325 | ···· |
1365 | ····public·void·startPostponedEnterTransition()·{ | 1326 | ····public·void·startPostponedEnterTransition()·{ |
1366 | ········if·(this.mAnimationInfo·!=·null)·{ | 1327 | ········if·(this.mAnimationInfo·!=·null)·{ |
1367 | ············if·(this.ensureAnimationInfo().mEnterTransitionPostponed)·{ | 1328 | ············if·(this.ensureAnimationInfo().mEnterTransitionPostponed)·{ |
1368 | ················if·(this.mHost·==·null)·{ | 1329 | ················if·(this.mHost·==·null)·{ |
1369 | ····················this.ensureAnimationInfo().mEnterTransitionPostponed·=·false; | 1330 | ····················this.ensureAnimationInfo().mEnterTransitionPostponed·=·false; |
1370 | ················} | 1331 | ················} |
1371 | ················else·if·(Looper.myLooper()·!=·this.mHost.getHandler().getLooper())·{ | 1332 | ················else·if·(Looper.myLooper()·!=·this.mHost.getHandler().getLooper())·{ |
1372 | ····················this.mHost.getHandler().postAtFrontOfQueue((Runnable)new·Fragment$2(this)); | 1333 | ····················this.mHost.getHandler().postAtFrontOfQueue((Runnable)new·Fragment$3(this)); |
1373 | ················} | 1334 | ················} |
1374 | ················else·{ | 1335 | ················else·{ |
1375 | ····················this.callStartTransitionListener(true); | 1336 | ····················this.callStartTransitionListener(); |
1376 | ················} | 1337 | ················} |
1377 | ············} | 1338 | ············} |
1378 | ········} | 1339 | ········} |
1379 | ····} | 1340 | ····} |
1380 | ···· | 1341 | ···· |
1381 | ····public·String·toString()·{ | 1342 | ····public·String·toString()·{ |
1382 | ········final·StringBuilder·sb·=·new·StringBuilder(128); | 1343 | ········final·StringBuilder·sb·=·new·StringBuilder(128); |