| | | |
Offset 1, 29 lines modified | Offset 1, 27 lines modified |
| |
1 | package·androidx.fragment.app; | 1 | package·androidx.fragment.app; |
| |
2 | import·androidx.collection.SimpleArrayMap; | 2 | import·androidx.collection.SimpleArrayMap; |
| 3 | import·androidx.core.view.ViewCompat; |
3 | import·androidx.core.view.ViewGroupCompat; | 4 | import·androidx.core.view.ViewGroupCompat; |
4 | import·androidx.core.app.SharedElementCallback; | |
5 | import·java.util.Iterator; | 5 | import·java.util.Iterator; |
6 | import·androidx.core.view.OneShotPreDrawListener; | 6 | import·androidx.core.view.OneShotPreDrawListener; |
7 | import·androidx.core.view.ViewCompat; | |
8 | import·java.util.Collection; | 7 | import·java.util.Collection; |
| 8 | import·java.util.Map; |
9 | import·androidx.collection.ArrayMap; | 9 | import·androidx.collection.ArrayMap; |
10 | import·java.util.ArrayList; | 10 | import·java.util.ArrayList; |
11 | import·android.graphics.Rect; | 11 | import·android.graphics.Rect; |
12 | import·java.util.Map; | |
13 | import·java.util.List; | 12 | import·java.util.List; |
14 | import·android.view.View; | 13 | import·android.view.View; |
15 | import·android.content.Context; | 14 | import·android.content.Context; |
16 | import·androidx.core.os.CancellationSignal$OnCancelListener; | 15 | import·androidx.core.os.CancellationSignal$OnCancelListener; |
17 | import·android.animation.Animator$AnimatorListener; | 16 | import·android.animation.Animator$AnimatorListener; |
18 | import·android.view.animation.Animation; | 17 | import·android.view.animation.Animation; |
19 | import·android.view.animation.Animation$AnimationListener; | 18 | import·android.view.animation.Animation$AnimationListener; |
20 | import·android.util.Log; | |
21 | import·java.util.HashSet; | 19 | import·java.util.HashSet; |
22 | import·androidx.core.os.CancellationSignal; | 20 | import·androidx.core.os.CancellationSignal; |
23 | import·android.view.ViewGroup; | 21 | import·android.view.ViewGroup; |
24 | import·java.util.HashMap; | 22 | import·java.util.HashMap; |
| |
25 | class·DefaultSpecialEffectsController·extends·SpecialEffectsController | 23 | class·DefaultSpecialEffectsController·extends·SpecialEffectsController |
26 | { | 24 | { |
Offset 37, 91 lines modified | Offset 35, 51 lines modified |
37 | ····private·void·addCancellationSignal(final·SpecialEffectsController$Operation·key,·final·CancellationSignal·e)·{ | 35 | ····private·void·addCancellationSignal(final·SpecialEffectsController$Operation·key,·final·CancellationSignal·e)·{ |
38 | ········if·(this.mRunningOperations.get(key)·==·null)·{ | 36 | ········if·(this.mRunningOperations.get(key)·==·null)·{ |
39 | ············this.mRunningOperations.put(key,·new·HashSet()); | 37 | ············this.mRunningOperations.put(key,·new·HashSet()); |
40 | ········} | 38 | ········} |
41 | ········((HashSet<CancellationSignal>)this.mRunningOperations.get(key)).add(e); | 39 | ········((HashSet<CancellationSignal>)this.mRunningOperations.get(key)).add(e); |
42 | ····} | 40 | ····} |
43 | ···· | 41 | ···· |
44 | ····private·void·startAnimation(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·cancellationSignal,·final·boolean·b,·final·boolean·b2)·{ | 42 | ····private·void·startAnimation(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·cancellationSignal)·{ |
45 | ········final·ViewGroup·container·=·this.getContainer(); | 43 | ········final·ViewGroup·container·=·this.getContainer(); |
46 | ········final·Context·context·=·container.getContext(); | 44 | ········final·Context·context·=·container.getContext(); |
47 | ········final·Fragment·fragment·=·specialEffectsController$Operation.getFragment(); | 45 | ········final·Fragment·fragment·=·specialEffectsController$Operation.getFragment(); |
48 | ········final·View·mView·=·fragment.mView; | 46 | ········final·View·mView·=·fragment.mView; |
| 47 | ········final·FragmentAnim$AnimationOrAnimator·loadAnimation·=·FragmentAnim.loadAnimation(context,·fragment,·specialEffectsController$Operation.getType()·==·SpecialEffectsController$Operation$Type.ADD·||·specialEffectsController$Operation.getType()·==·SpecialEffectsController$Operation$Type.SHOW); |
49 | ········final·SpecialEffectsController$Operation$State·from·=·SpecialEffectsController$Operation$State.from(mView); | |
50 | ········final·SpecialEffectsController$Operation$State·finalState·=·specialEffectsController$Operation.getFinalState(); | |
51 | ········if·(from·!=·finalState)·{ | |
52 | ············final·SpecialEffectsController$Operation$State·visible·=·SpecialEffectsController$Operation$State.VISIBLE; | |
53 | ············if·(from·==·visible·||·finalState·==·visible)·{ | |
54 | ················final·FragmentAnim$AnimationOrAnimator·loadAnimation·=·FragmentAnim.loadAnimation(context,·fragment,·finalState·==·SpecialEffectsController$Operation$State.VISIBLE); | |
55 | ················if·(loadAnimation·==·null)·{ | 48 | ········if·(loadAnimation·==·null)·{ |
56 | ····················this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal); | 49 | ············this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal); |
57 | ····················return; | 50 | ············return; |
| 51 | ········} |
58 | ················} | |
59 | ················final·String·s·=·"FragmentManager"; | |
60 | ················final·int·n·=·2; | |
61 | ················if·(b·&&·loadAnimation.animation·!=·null)·{ | |
62 | ····················if·(FragmentManager.isLoggingEnabled(n))·{ | |
63 | ························final·StringBuilder·sb·=·new·StringBuilder(); | |
64 | ························sb.append("Ignoring·Animation·set·on·"); | |
65 | ························sb.append(fragment); | |
66 | ························sb.append("·as·Animations·cannot·run·alongside·Transitions."); | |
67 | ························Log.v(s,·sb.toString()); | |
68 | ····················} | |
69 | ····················this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal); | |
70 | ····················return; | |
71 | ················} | |
72 | ················if·(b2)·{ | |
73 | ····················if·(FragmentManager.isLoggingEnabled(n))·{ | |
74 | ························final·StringBuilder·sb2·=·new·StringBuilder(); | |
75 | ························sb2.append("Ignoring·Animator·set·on·"); | |
76 | ························sb2.append(fragment); | |
77 | ························sb2.append("·as·this·Fragment·was·involved·in·a·Transition."); | |
78 | ························Log.v(s,·sb2.toString()); | |
79 | ····················} | |
80 | ····················this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal); | |
81 | ····················return; | |
82 | ················} | |
83 | ················container.startViewTransition(mView); | 52 | ········container.startViewTransition(mView); |
84 | ················if·(loadAnimation.animation·!=·null)·{ | 53 | ········if·(loadAnimation.animation·!=·null)·{ |
85 | ····················Object·o; | 54 | ············Object·o; |
| 55 | ············if·(specialEffectsController$Operation.getType()·!=·SpecialEffectsController$Operation$Type.ADD·&&·specialEffectsController$Operation.getType()·!=·SpecialEffectsController$Operation$Type.SHOW)·{ |
86 | ····················if·(specialEffectsController$Operation.getFinalState()·==·SpecialEffectsController$Operation$State.VISIBLE)·{ | |
87 | ························o·=·new·FragmentAnim$EnterViewTransitionAnimation(loadAnimation.animation); | |
88 | ····················} | |
89 | ····················else·{ | |
90 | ························o·=·new·FragmentAnim$EndViewTransitionAnimation(loadAnimation.animation,·container,·mView); | 56 | ················o·=·new·FragmentAnim$EndViewTransitionAnimation(loadAnimation.animation,·container,·mView); |
91 | ····················} | |
92 | ····················((Animation)o).setAnimationListener((Animation$AnimationListener)new·DefaultSpecialEffectsController$4(this,·container,·mView,·specialEffectsController$Operation,·cancellationSignal)); | |
93 | ····················mView.startAnimation((Animation)o); | |
94 | ················} | |
95 | ················else·{ | |
96 | ····················loadAnimation.animator.addListener((Animator$AnimatorListener)new·DefaultSpecialEffectsController$5(this,·container,·mView,·specialEffectsController$Operation,·cancellationSignal)); | |
97 | ····················loadAnimation.animator.setTarget((Object)mView); | |
98 | ····················loadAnimation.animator.start(); | |
99 | ················} | |
100 | ················cancellationSignal.setOnCancelListener((CancellationSignal$OnCancelListener)new·DefaultSpecialEffectsController$6(this,·mView)); | |
101 | ················return; | |
102 | ············} | 57 | ············} |
| 58 | ············else·{ |
| 59 | ················o·=·new·FragmentAnim$EnterViewTransitionAnimation(loadAnimation.animation); |
| 60 | ············} |
| 61 | ············final·Object·o2·=·o; |
| 62 | ············((Animation)o2).setAnimationListener((Animation$AnimationListener)new·DefaultSpecialEffectsController$3(this,·container,·mView,·specialEffectsController$Operation,·cancellationSignal)); |
| 63 | ············mView.startAnimation((Animation)o2); |
103 | ········} | 64 | ········} |
104 | ········this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal); | 65 | ········else·{ |
| 66 | ············loadAnimation.animator.addListener((Animator$AnimatorListener)new·DefaultSpecialEffectsController$4(this,·container,·mView,·specialEffectsController$Operation,·cancellationSignal)); |
| 67 | ············loadAnimation.animator.setTarget((Object)mView); |
| 68 | ············loadAnimation.animator.start(); |
| 69 | ········} |
| 70 | ········cancellationSignal.setOnCancelListener((CancellationSignal$OnCancelListener)new·DefaultSpecialEffectsController$5(this,·mView)); |
105 | ····} | 71 | ····} |
106 | ···· | 72 | ···· |
107 | ····private·Map·startTransitions(final·List·list,·final·boolean·b,·final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·SpecialEffectsController$Operation·specialEffectsController$Operation2)·{ | 73 | ····private·void·startTransitions(final·List·list,·final·boolean·b,·final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·SpecialEffectsController$Operation·specialEffectsController$Operation2)·{ |
108 | ········boolean·b2·=·b; | |
109 | ········SpecialEffectsController$Operation·specialEffectsController$Operation3·=·specialEffectsController$Operation; | 74 | ········SpecialEffectsController$Operation·specialEffectsController$Operation3·=·specialEffectsController$Operation2; |
110 | ········SpecialEffectsController$Operation·specialEffectsController$Operation4·=·specialEffectsController$Operation2; | |
111 | ········Boolean·true·=·Boolean.TRUE; | |
112 | ········Boolean·false·=·Boolean.FALSE; | |
113 | ········Map<SpecialEffectsController$Operation,·Boolean>·map·=·new·HashMap<SpecialEffectsController$Operation,·Boolean>(); | |
114 | ········final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator·=·list.iterator(); | 75 | ········final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator·=·list.iterator(); |
115 | ········FragmentTransitionImpl·fragmentTransitionImpl·=·null; | 76 | ········FragmentTransitionImpl·fragmentTransitionImpl·=·null; |
116 | ········while·(iterator.hasNext())·{ | 77 | ········while·(iterator.hasNext())·{ |
117 | ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo·=·(DefaultSpecialEffectsController$TransitionInfo)iterator.next(); | 78 | ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo·=·(DefaultSpecialEffectsController$TransitionInfo)iterator.next(); |
118 | ············if·(defaultSpecialEffectsController$TransitionInfo.isVisibilityUnchanged())·{ | |
119 | ················continue; | |
120 | ············} | |
121 | ············final·FragmentTransitionImpl·handlingImpl·=·defaultSpecialEffectsController$TransitionInfo.getHandlingImpl(); | 79 | ············final·FragmentTransitionImpl·handlingImpl·=·defaultSpecialEffectsController$TransitionInfo.getHandlingImpl(); |
122 | ············if·(fragmentTransitionImpl·==·null)·{ | 80 | ············if·(fragmentTransitionImpl·==·null)·{ |
123 | ················fragmentTransitionImpl·=·handlingImpl; | 81 | ················fragmentTransitionImpl·=·handlingImpl; |
124 | ············} | 82 | ············} |
125 | ············else·{ | 83 | ············else·{ |
126 | ················if·(handlingImpl·==·null)·{ | 84 | ················if·(handlingImpl·==·null)·{ |
127 | ····················continue; | 85 | ····················continue; |
Offset 136, 374 lines modified | Offset 94, 210 lines modified |
136 | ················sb.append(defaultSpecialEffectsController$TransitionInfo.getTransition()); | 94 | ················sb.append(defaultSpecialEffectsController$TransitionInfo.getTransition()); |
137 | ················sb.append("·which·uses·a·different·Transition··type·than·other·Fragments."); | 95 | ················sb.append("·which·uses·a·different·Transition··type·than·other·Fragments."); |
138 | ················throw·new·IllegalArgumentException(sb.toString()); | 96 | ················throw·new·IllegalArgumentException(sb.toString()); |
139 | ············} | 97 | ············} |
140 | ········} | 98 | ········} |
141 | ········if·(fragmentTransitionImpl·==·null)·{ | 99 | ········if·(fragmentTransitionImpl·==·null)·{ |
142 | ············for·(final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo2·:·list)·{ | 100 | ············for·(final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo2·:·list)·{ |
143 | ················map.put(defaultSpecialEffectsController$TransitionInfo2.getOperation(),·false); | |
144 | ················this.removeCancellationSignal(defaultSpecialEffectsController$TransitionInfo2.getOperation(),·defaultSpecialEffectsController$TransitionInfo2.getSignal()); | 101 | ················this.removeCancellationSignal(defaultSpecialEffectsController$TransitionInfo2.getOperation(),·defaultSpecialEffectsController$TransitionInfo2.getSignal()); |
145 | ············} | 102 | ············} |
146 | ············return·map; | 103 | ············return; |
147 | ········} | 104 | ········} |
148 | ········View·view·=·new·View(this.getContainer().getContext()); | 105 | ········final·View·view·=·new·View(this.getContainer().getContext()); |
149 | ········Rect·rect·=·new·Rect(); | 106 | ········final·Rect·rect·=·new·Rect(); |
| 107 | ········final·ArrayList·c·=·new·ArrayList(); |
150 | ········ArrayList·list2·=·new·ArrayList(); | 108 | ········final·ArrayList·c2·=·new·ArrayList(); |
151 | ········ArrayList·list3·=·new·ArrayList(); | |
152 | ········ArrayMap·arrayMap·=·new·ArrayMap(); | 109 | ········ArrayMap·arrayMap·=·new·ArrayMap(); |
153 | ········final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator3·=·list.iterator(); | 110 | ········Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator3·=·list.iterator(); |
154 | ········Object·o·=·null; | |
155 | ········View·view2·=·null; | 111 | ········View·view2·=·null; |
156 | ········boolean·b3·=·false; | 112 | ········boolean·b2·=·false; |
157 | ········View·view3; | 113 | ········Object·wrapTransitionInSet·=·null; |
| 114 | ········boolean·b3; |
158 | ········while·(true)·{ | 115 | ········while·(true)·{ |
159 | ············final·boolean·hasNext·=·iterator3.hasNext(); | 116 | ············final·boolean·hasNext·=·iterator3.hasNext(); |
160 | ············view3·=·view2; | 117 | ············b3·=·true; |
161 | ············if·(!hasNext)·{ | 118 | ············if·(!hasNext)·{ |
162 | ················break; | 119 | ················break; |
163 | ············} | 120 | ············} |
164 | ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo3·=·(DefaultSpecialEffectsController$TransitionInfo)iterator3.next(); | 121 | ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo3·=·(DefaultSpecialEffectsController$TransitionInfo)iterator3.next(); |
| 122 | ············Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator5; |
165 | ············Boolean·b4; | |
166 | ············SpecialEffectsController$Operation·specialEffectsController$Operation5; | |
167 | ············ArrayMap·arrayMap4; | |
168 | ············ArrayList·list5; | |
169 | ············Map<SpecialEffectsController$Operation,·Boolean>·map2; | |
170 | ············View·view6; | |
171 | ············FragmentTransitionImpl·fragmentTransitionImpl2; | |
172 | ············Boolean·b7; | |
173 | ············SpecialEffectsController$Operation·specialEffectsController$Operation6; | |
174 | ············ArrayList·list6; | |
175 | ············Rect·rect3; | |
176 | ············if·(defaultSpecialEffectsController$TransitionInfo3.hasSharedElementTransition()·&&·specialEffectsController$Operation3·!=·null·&&·specialEffectsController$Operation4·!=·null)·{ | 123 | ············if·(defaultSpecialEffectsController$TransitionInfo3.hasSharedElementTransition()·&&·specialEffectsController$Operation·!=·null·&&·specialEffectsController$Operation3·!=·null)·{ |
177 | ················final·Object·wrapTransitionInSet·=·fragmentTransitionImpl.wrapTransitionInSet(fragmentTransitionImpl.cloneTransition(defaultSpecialEffectsController$TransitionInfo3.getSharedElementTransition())); | 124 | ················wrapTransitionInSet·=·fragmentTransitionImpl.wrapTransitionInSet(fragmentTransitionImpl.cloneTransition(defaultSpecialEffectsController$TransitionInfo3.getSharedElementTransition())); |
178 | ················final·ArrayList·sharedElementSourceNames·=·specialEffectsController$Operation2.getFragment().getSharedElementSourceNames(); | |
179 | ················final·ArrayList·sharedElementSourceNames2·=·specialEffectsController$Operation.getFragment().getSharedElementSourceNames(); | |
180 | ················final·Fragment·fragment·=·specialEffectsController$Operation.getFragment(); | 125 | ················final·Fragment·fragment·=·defaultSpecialEffectsController$TransitionInfo3.getOperation().getFragment(); |
| 126 | ················ArrayList<String>·list2; |
181 | ················final·Object·o2·=·wrapTransitionInSet; | |
182 | ················ArrayList<Object>·sharedElementTargetNames·=·(ArrayList<Object>)fragment.getSharedElementTargetNames(); | |
183 | ················final·Rect·rect2·=·rect; | |
184 | ················b4·=·false; | |
185 | ················ArrayList<Object>·list4; | 127 | ················ArrayList·list3; |
186 | ················for·(int·i·=·0;·i·<·sharedElementTargetNames.size();·++i,·sharedElementTargetNames·=·list4)·{ | |
187 | ····················final·int·index·=·sharedElementSourceNames.indexOf(sharedElementTargetNames.get(i)); | |
188 | ····················list4·=·sharedElementTargetNames; | |
189 | ····················if·(index·!=·-1)·{ | |
190 | ························sharedElementSourceNames.set(index,·sharedElementSourceNames2.get(i)); | |
191 | ····················} | |
192 | ················} | |
193 | ················final·ArrayList·sharedElementTargetNames2·=·specialEffectsController$Operation2.getFragment().getSharedElementTargetNames(); | |
194 | ················SharedElementCallback·sharedElementCallback; | |
195 | ················SharedElementCallback·sharedElementCallback2; | |
196 | ················if·(!b2)·{ | 128 | ················if·(!b)·{ |
197 | ····················sharedElementCallback·=·specialEffectsController$Operation.getFragment().getExitTransitionCallback(); | |
198 | ····················sharedElementCallback2·=·specialEffectsController$Operation2.getFragment().getEnterTransitionCallback(); | 129 | ····················list2·=·(ArrayList<String>)fragment.getSharedElementSourceNames(); |
| 130 | ····················list3·=·fragment.getSharedElementTargetNames(); |
199 | ················} | 131 | ················} |
200 | ················else·{ | 132 | ················else·{ |
| 133 | ····················list2·=·(ArrayList<String>)fragment.getSharedElementTargetNames(); |
| 134 | ····················list3·=·fragment.getSharedElementSourceNames(); |
201 | ····················sharedElementCallback·=·specialEffectsController$Operation.getFragment().getEnterTransitionCallback(); | |
202 | ····················sharedElementCallback2·=·specialEffectsController$Operation2.getFragment().getExitTransitionCallback(); | |
203 | ················} | |
204 | ················for·(int·size·=·sharedElementSourceNames.size(),·j·=·0;·j·<·size;·++j)·{ | |
205 | ····················((SimpleArrayMap)arrayMap).put((Object)(String)sharedElementSourceNames.get(j),·(Object)(String)sharedElementTargetNames2.get(j)); | |
206 | ················} | 135 | ················} |
| 136 | ················ArrayList<String>·list4; |
| 137 | ················Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator4; |
| 138 | ················View·view3; |
| 139 | ················for·(int·size·=·list2.size(),·i·=·0;·i·<·size;·++i,·list2·=·list4,·iterator3·=·iterator4,·view2·=·view3)·{ |
| 140 | ····················list4·=·list2; |
| 141 | ····················final·String·value·=·list2.get(i); |
| 142 | ····················iterator4·=·iterator3; |
| 143 | ····················final·String·s·=·(String)value; |
| 144 | ····················final·String·value2·=·list3.get(i); |
| 145 | ····················view3·=·view2; |
| 146 | ····················((SimpleArrayMap)arrayMap).put((Object)s,·(Object)(String)value2); |
| 147 | ················} |
| 148 | ················iterator5·=·iterator3; |
| 149 | ················final·View·view4·=·view2; |
| 150 | ················final·ArrayList<String>·list5·=·list2; |
207 | ················final·ArrayMap·arrayMap2·=·new·ArrayMap(); | 151 | ················final·ArrayMap·arrayMap2·=·new·ArrayMap(); |
208 | ················this.findNamedViews((Map)arrayMap2,·specialEffectsController$Operation.getFragment().mView); | 152 | ················this.findNamedViews((Map)arrayMap2,·specialEffectsController$Operation.getFragment().mView); |
209 | ················arrayMap2.retainAll((Collection)sharedElementSourceNames); | 153 | ················arrayMap2.retainAll((Collection)list2); |
210 | ················Boolean·b6; | |
211 | ················if·(sharedElementCallback·!=·null)·{ | |
212 | ····················sharedElementCallback.onMapSharedElements((List)sharedElementSourceNames,·(Map)arrayMap2); | |
213 | ····················Boolean·b5; | |
214 | ····················for·(int·k·=·sharedElementSourceNames.size()·-·1;·k·>=·0;·--k,·true·=·b5)·{ | |
215 | ························final·String·s·=·(String)sharedElementSourceNames.get(k); | |
216 | ························final·View·view4·=·(View)((SimpleArrayMap)arrayMap2).get((Object)s); | |
217 | ························if·(view4·==·null)·{ | |
218 | ····························((SimpleArrayMap)arrayMap).remove((Object)s); | |
219 | ····························b5·=·true; | |
220 | ························} | |
221 | ························else·{ | |
222 | ····························b5·=·true; | |
223 | ····························if·(!s.equals(ViewCompat.getTransitionName(view4)))·{ | |
224 | ································((SimpleArrayMap)arrayMap).put((Object)ViewCompat.getTransitionName(view4),·(Object)(String)((SimpleArrayMap)arrayMap).remove((Object)s)); | |
225 | ····························} | |
226 | ························} | |
227 | ····················} | |
228 | ····················b6·=·true; | |
229 | ················} | |
230 | ················else·{ | |
231 | ····················b6·=·true; | |
232 | ····················arrayMap.retainAll((Collection)arrayMap2.keySet()); | 154 | ················arrayMap.retainAll((Collection)arrayMap2.keySet()); |
233 | ················} | |
234 | ················final·ArrayMap·arrayMap3·=·new·ArrayMap(); | 155 | ················final·ArrayMap·arrayMap3·=·new·ArrayMap(); |
235 | ················this.findNamedViews((Map)arrayMap3,·specialEffectsController$Operation2.getFragment().mView); | 156 | ················this.findNamedViews((Map)arrayMap3,·specialEffectsController$Operation2.getFragment().mView); |
236 | ················arrayMap3.retainAll((Collection)sharedElementTargetNames2); | 157 | ················arrayMap3.retainAll((Collection)list3); |
| 158 | ················FragmentTransition.retainValues(arrayMap,·arrayMap3); |
| 159 | ················arrayMap2.retainAll((Collection)arrayMap.keySet()); |
237 | ················arrayMap3.retainAll(arrayMap.values()); | 160 | ················arrayMap3.retainAll(arrayMap.values()); |
238 | ················if·(sharedElementCallback2·!=·null)·{ | |
239 | ····················sharedElementCallback2.onMapSharedElements((List)sharedElementTargetNames2,·(Map)arrayMap3); | |
240 | ····················for·(int·l·=·sharedElementTargetNames2.size()·-·1;·l·>=·0;·--l)·{ | |
241 | ························final·String·s2·=·(String)sharedElementTargetNames2.get(l); | |
242 | ························final·View·view5·=·(View)((SimpleArrayMap)arrayMap3).get((Object)s2); | |
243 | ························if·(view5·==·null)·{ | |
244 | ····························final·String·keyForValue·=·FragmentTransition.findKeyForValue(arrayMap,·s2); | |
245 | ····························if·(keyForValue·!=·null)·{ | |
246 | ································((SimpleArrayMap)arrayMap).remove((Object)keyForValue); | |
247 | ····························} | |
248 | ························} | |
249 | ························else·if·(!s2.equals(ViewCompat.getTransitionName(view5)))·{ | |
250 | ····························final·String·keyForValue2·=·FragmentTransition.findKeyForValue(arrayMap,·s2); | |
251 | ····························if·(keyForValue2·!=·null)·{ | |
252 | ································((SimpleArrayMap)arrayMap).put((Object)keyForValue2,·(Object)ViewCompat.getTransitionName(view5)); | |
253 | ····························} | |
254 | ························} | |
255 | ····················} | |
256 | ················} | |
257 | ················else·{ | |
258 | ····················FragmentTransition.retainValues(arrayMap,·arrayMap3); | |
259 | ················} | |
260 | ················this.retainMatchingViews(arrayMap2,·arrayMap.keySet()); | |
261 | ················this.retainMatchingViews(arrayMap3,·arrayMap.values()); | |
262 | ················if·(((SimpleArrayMap)arrayMap).isEmpty())·{ | 161 | ················if·(((SimpleArrayMap)arrayMap).isEmpty())·{ |
| 162 | ····················c.clear(); |
263 | ····················list2.clear(); | 163 | ····················c2.clear(); |
264 | ····················list3.clear(); | |
265 | ····················specialEffectsController$Operation5·=·specialEffectsController$Operation2; | |
266 | ····················arrayMap4·=·arrayMap; | |
267 | ····················list5·=·list2; | |
268 | ····················map2·=·map; | |
269 | ····················view6·=·view; | |
270 | ····················fragmentTransitionImpl2·=·fragmentTransitionImpl; | |
271 | ····················view2·=·view3; | 164 | ····················view2·=·view4; |
272 | ····················b7·=·b6; | |
273 | ····················o·=·null; | 165 | ····················wrapTransitionInSet·=·null; |
274 | ····················specialEffectsController$Operation6·=·specialEffectsController$Operation; | |
275 | ····················list6·=·list3; | |
276 | ····················rect3·=·rect2; | |
277 | ················} | 166 | ················} |
278 | ················else·{ | 167 | ················else·{ |
| 168 | ····················Iterator<View>·iterator7; |
| 169 | ····················for·(Iterator<View>·iterator6·=·arrayMap2.values().iterator();·iterator6.hasNext();·iterator6·=·iterator7)·{ |
| 170 | ························final·View·next·=·iterator6.next(); |
| 171 | ························iterator7·=·iterator6; |
279 | ····················FragmentTransition.callSharedElementStartEnd(specialEffectsController$Operation2.getFragment(),·specialEffectsController$Operation.getFragment(),·b2,·arrayMap2,·true); | |
280 | ····················final·ViewGroup·container·=·this.getContainer(); | |
281 | ····················final·DefaultSpecialEffectsController$7·defaultSpecialEffectsController$7·=·new(androidx.fragment.app.DefaultSpecialEffectsController$7.class); | |
282 | ····················final·Object·o3·=·o2; | |
283 | ····················final·DefaultSpecialEffectsController$7·defaultSpecialEffectsController$8·=·defaultSpecialEffectsController$7; | |
284 | ····················arrayMap4·=·arrayMap; | |
285 | ····················final·Map<SpecialEffectsController$Operation,·Boolean>·map3·=·map; | |
286 | ····················list6·=·list3; | |
287 | ····················final·View·view7·=·view; | |
288 | ····················final·ArrayList·list7·=·list2; | |
289 | ····················final·Rect·rect4·=·rect2; | |
290 | ····················final·ArrayList<String>·list8·=·(ArrayList<String>)sharedElementTargetNames2; | |
291 | ····················final·ViewGroup·viewGroup·=·container; | |
292 | ····················new·DefaultSpecialEffectsController$7(this,·specialEffectsController$Operation2,·specialEffectsController$Operation,·b,·arrayMap3); | |
293 | ····················OneShotPreDrawListener.add((View)viewGroup,·(Runnable)defaultSpecialEffectsController$8); | |
294 | ····················final·Iterator·iterator4·=·arrayMap2.values().iterator(); | |
295 | ····················while·(iterator4.hasNext())·{ | |
296 | ························this.captureTransitioningViews(list7,·iterator4.next()); | 172 | ························this.captureTransitioningViews(c,·next); |
297 | ····················} | 173 | ····················} |
| 174 | ····················View·view5; |
298 | ····················if·(!sharedElementSourceNames.isEmpty())·{ | 175 | ····················if·(!list5.isEmpty())·{ |
299 | ························final·View·view8·=·(View)((SimpleArrayMap)arrayMap2).get((Object)(String)sharedElementSourceNames.get(0)); | 176 | ························view5·=·(View)((SimpleArrayMap)arrayMap2).get((Object)(String)list5.get(0)); |
300 | ························fragmentTransitionImpl.setEpicenter(o3,·view8); | 177 | ························fragmentTransitionImpl.setEpicenter(wrapTransitionInSet,·view5); |
301 | ························view2·=·view8; | |
302 | ····················} | 178 | ····················} |
303 | ····················else·{ | 179 | ····················else·{ |
304 | ························view2·=·view3; | 180 | ························view5·=·view4; |
305 | ····················} | |
306 | ····················final·Iterator·iterator5·=·arrayMap3.values().iterator(); | |
307 | ····················while·(iterator5.hasNext())·{ | |
308 | ························this.captureTransitioningViews(list6,·iterator5.next()); | |
309 | ····················} | 181 | ····················} |
310 | ····················View·view10·=·null; | |
311 | ····················Label_1631:·{ | 182 | ····················final·Iterator·iterator8·=·arrayMap3.values().iterator(); |
| 183 | ····················while·(iterator8.hasNext())·{ |
| 184 | ························this.captureTransitioningViews(c2,·iterator8.next()); |
| 185 | ····················} |
312 | ························if·(!list8.isEmpty())·{ | 186 | ····················if·(!list3.isEmpty())·{ |
313 | ····························final·View·view9·=·(View)((SimpleArrayMap)arrayMap3).get((Object)(String)list8.get(0)); | 187 | ························final·View·view6·=·(View)((SimpleArrayMap)arrayMap3).get((Object)(String)list3.get(0)); |
314 | ····························if·(view9·!=·null)·{ | 188 | ························if·(view6·!=·null)·{ |
315 | ································final·ViewGroup·container2·=·this.getContainer(); | |
316 | ································rect3·=·rect4; | |
317 | ································OneShotPreDrawListener.add((View)container2,·(Runnable)new·DefaultSpecialEffectsController$8(this,·fragmentTransitionImpl,·view9,·rect4)); | 189 | ····························OneShotPreDrawListener.add((View)this.getContainer(),·(Runnable)new·DefaultSpecialEffectsController$6(this,·fragmentTransitionImpl,·view6,·rect)); |
318 | ································view10·=·view7; | |
319 | ································b3·=·true; | |
320 | ································break·Label_1631; | |
321 | ····························} | 190 | ····························b2·=·b3; |
322 | ························} | 191 | ························} |
323 | ························rect3·=·rect4; | |
324 | ························view10·=·view7; | |
325 | ····················} | 192 | ····················} |
326 | ····················fragmentTransitionImpl.setSharedElementTargets(o3,·view10,·(ArrayList)list7); | 193 | ····················fragmentTransitionImpl.addTargets(wrapTransitionInSet,·c); |
327 | ····················view6·=·view10; | 194 | ····················view2·=·view5; |
328 | ····················list5·=·list7; | |
329 | ····················final·FragmentTransitionImpl·fragmentTransitionImpl3·=·fragmentTransitionImpl; | |
330 | ····················fragmentTransitionImpl2·=·fragmentTransitionImpl; | |
331 | ····················fragmentTransitionImpl3.scheduleRemoveTargets(o3,·(Object)null,·(ArrayList)null,·(Object)null,·(ArrayList)null,·o3,·(ArrayList)list6); | |
332 | ····················specialEffectsController$Operation6·=·specialEffectsController$Operation; | |
333 | ····················b7·=·b6; | |
334 | ····················map2·=·map3; | |
335 | ····················map3.put(specialEffectsController$Operation,·b6); | |
336 | ····················specialEffectsController$Operation5·=·specialEffectsController$Operation2; | |
337 | ····················map3.put(specialEffectsController$Operation2,·b6); | |
338 | ····················o·=·o3; | |
339 | ················} | 195 | ················} |
340 | ············} | 196 | ············} |
341 | ············else·{ | 197 | ············else·{ |
| 198 | ················iterator5·=·iterator3; |
342 | ················arrayMap4·=·arrayMap; | |
343 | ················list5·=·list2; | |
344 | ················specialEffectsController$Operation6·=·specialEffectsController$Operation3; | |
345 | ················b7·=·true; | |
346 | ················b4·=·false; | |
347 | ················view6·=·view; | |
348 | ················fragmentTransitionImpl2·=·fragmentTransitionImpl; | |
349 | ················final·Map<SpecialEffectsController$Operation,·Boolean>·map4·=·map; | |
350 | ················list6·=·list3; | |
351 | ················rect3·=·rect; | |
352 | ················specialEffectsController$Operation5·=·specialEffectsController$Operation4; | |
353 | ················map2·=·map4; | |
354 | ················view2·=·view3; | |
355 | ············} | 199 | ············} |
| 200 | ············iterator3·=·iterator5; |
356 | ············view·=·view6; | |
357 | ············true·=·b7; | |
358 | ············list2·=·list5; | |
359 | ············fragmentTransitionImpl·=·fragmentTransitionImpl2; | |
360 | ············false·=·b4; | |
361 | ············b2·=·b; | |
362 | ············specialEffectsController$Operation3·=·specialEffectsController$Operation6; | |
363 | ············arrayMap·=·arrayMap4; | |
364 | ············final·SpecialEffectsController$Operation·specialEffectsController$Operation7·=·specialEffectsController$Operation5; | |
365 | ············rect·=·rect3; | |
366 | ············list3·=·list6; | |
367 | ············map·=·map2; | |
368 | ············specialEffectsController$Operation4·=·specialEffectsController$Operation7; | |
369 | ········} | 201 | ········} |
370 | ········final·Map·map5·=·(Map)arrayMap; | |
371 | ········final·ArrayList·c·=·list2; | |
372 | ········SpecialEffectsController$Operation·specialEffectsController$Operation8·=·specialEffectsController$Operation3; | |
373 | ········final·Boolean·b8·=·true; | |
374 | ········Boolean·b9·=·false; | |
375 | ········View·view11·=·view; | 202 | ········View·view7·=·view2; |
376 | ········final·FragmentTransitionImpl·fragmentTransitionImpl4·=·fragmentTransitionImpl; | |
377 | ········final·Map<SpecialEffectsController$Operation,·Boolean>·map6·=·map; | |
378 | ········final·ArrayList·c2·=·list3; | |
379 | ········final·Rect·rect5·=·rect; | |
380 | ········SpecialEffectsController$Operation·specialEffectsController$Operation9·=·specialEffectsController$Operation4; | |
381 | ········final·Map<SpecialEffectsController$Operation,·Boolean>·map7·=·map6; | |
382 | ········final·ArrayList·list9·=·new·ArrayList(); | 203 | ········final·ArrayList·list6·=·new·ArrayList(); |
383 | ········Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator6·=·list.iterator(); | 204 | ········Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator9·=·list.iterator(); |
384 | ········Object·o4·=·null; | |
385 | ········Object·mergeTransitionsTogether·=·null; | 205 | ········Object·mergeTransitionsTogether·=·null; |
| 206 | ········Object·mergeTransitionsTogether2·=·null; |
386 | ········while·(iterator6.hasNext())·{ | 207 | ········while·(iterator9.hasNext())·{ |
387 | ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo4·=·(DefaultSpecialEffectsController$TransitionInfo)iterator6.next(); | 208 | ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo4·=·(DefaultSpecialEffectsController$TransitionInfo)iterator9.next(); |
388 | ············if·(defaultSpecialEffectsController$TransitionInfo4.isVisibilityUnchanged())·{ | 209 | ············final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator10·=·iterator9; |
| 210 | ············final·Object·cloneTransition·=·fragmentTransitionImpl.cloneTransition(defaultSpecialEffectsController$TransitionInfo4.getTransition()); |
| 211 | ············final·ArrayMap·arrayMap4·=·arrayMap; |
389 | ················final·SpecialEffectsController$Operation·operation·=·defaultSpecialEffectsController$TransitionInfo4.getOperation(); | 212 | ············final·SpecialEffectsController$Operation·operation·=·defaultSpecialEffectsController$TransitionInfo4.getOperation(); |
390 | ················final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator7·=·iterator6; | |
391 | ················map7.put(operation,·b9); | |
392 | ················final·SpecialEffectsController$Operation·operation2·=·defaultSpecialEffectsController$TransitionInfo4.getOperation(); | |
393 | ················final·Object·o5·=·mergeTransitionsTogether; | 213 | ············final·boolean·b4·=·wrapTransitionInSet·!=·null·&&·(operation·==·specialEffectsController$Operation·||·operation·==·specialEffectsController$Operation3)·&&·b3; |
| 214 | ············Object·o; |
| 215 | ············View·view8; |
| 216 | ············if·(cloneTransition·==·null)·{ |
| 217 | ················if·(!b4)·{ |
394 | ················this.removeCancellationSignal(operation2,·defaultSpecialEffectsController$TransitionInfo4.getSignal()); | 218 | ····················this.removeCancellationSignal(defaultSpecialEffectsController$TransitionInfo4.getOperation(),·defaultSpecialEffectsController$TransitionInfo4.getSignal()); |
395 | ················mergeTransitionsTogether·=·o5; | |
396 | ················iterator6·=·iterator7; | 219 | ················} |
| 220 | ················o·=·wrapTransitionInSet; |
| 221 | ················view8·=·view7; |
397 | ············} | 222 | ············} |
398 | ············else·{ | 223 | ············else·{ |
| 224 | ················final·ArrayList·c3·=·new·ArrayList(); |
399 | ················final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator8·=·iterator6; | |
400 | ················final·Object·o6·=·mergeTransitionsTogether; | |
401 | ················final·Boolean·b10·=·b9; | |
402 | ················Object·cloneTransition·=·fragmentTransitionImpl4.cloneTransition(defaultSpecialEffectsController$TransitionInfo4.getTransition()); | |
403 | ················final·SpecialEffectsController$Operation·operation3·=·defaultSpecialEffectsController$TransitionInfo4.getOperation(); | 225 | ················final·SpecialEffectsController$Operation·operation2·=·defaultSpecialEffectsController$TransitionInfo4.getOperation(); |
| 226 | ················o·=·wrapTransitionInSet; |
404 | ················final·boolean·b11·=·o·!=·null·&&·(operation3·==·specialEffectsController$Operation8·||·operation3·==·specialEffectsController$Operation9); | |
405 | ················View·view12; | |
406 | ················View·view13; | |
407 | ················if·(cloneTransition·==·null)·{ | |
408 | ····················if·(!b11)·{ | |
409 | ························map7.put(operation3,·b10); | |
410 | ························this.removeCancellationSignal(operation3,·defaultSpecialEffectsController$TransitionInfo4.getSignal()); | |
411 | ····················} | |
412 | ····················view12·=·view11; | |
413 | ····················b9·=·b10; | |
414 | ····················mergeTransitionsTogether·=·o6; | |
415 | ····················view13·=·view3; | |
416 | ················} | |
417 | ················else·{ | |
418 | ····················final·ArrayList·c3·=·new·ArrayList(); | |
419 | ····················b9·=·b10; | |
420 | ····················this.captureTransitioningViews(c3,·operation3.getFragment().mView); | 227 | ················this.captureTransitioningViews(c3,·operation2.getFragment().mView); |
421 | ····················if·(b11)·{ | 228 | ················if·(b4)·{ |
422 | ························if·(operation3·==·specialEffectsController$Operation8)·{ | 229 | ····················if·(operation·==·specialEffectsController$Operation)·{ |
423 | ····························c3.removeAll(c); | 230 | ························c3.removeAll(c); |
424 | ························} | |
425 | ························else·{ | |
426 | ····························c3.removeAll(c2); | |
427 | ························} | |
428 | ····················} | |
429 | ····················SpecialEffectsController$Operation·specialEffectsController$Operation10; | |
430 | ····················Object·o7; | |
431 | ····················if·(c3.isEmpty())·{ | |
432 | ························fragmentTransitionImpl4.addTarget(cloneTransition,·view11); | |
433 | ························view12·=·view11; | |
434 | ························specialEffectsController$Operation10·=·operation3; | |
435 | ························o7·=·o6; | |
436 | ····················} | |
437 | ····················else·{ | |
438 | ························fragmentTransitionImpl4.addTargets(cloneTransition,·(ArrayList)c3); | |
439 | ························specialEffectsController$Operation10·=·operation3; | |
440 | ························view12·=·view11; | |
441 | ························final·Object·o8·=·cloneTransition; | |
442 | ························o7·=·o6; | |
443 | ························fragmentTransitionImpl4.scheduleRemoveTargets(cloneTransition,·cloneTransition,·(ArrayList)c3,·(Object)null,·(ArrayList)null,·(Object)null,·(ArrayList)null); | |
444 | ························if·(specialEffectsController$Operation10.getFinalState()·==·SpecialEffectsController$Operation$State.GONE)·{ | |
445 | ····························final·View·mView·=·specialEffectsController$Operation10.getFragment().mView; | |
446 | ····························cloneTransition·=·o8; | |
447 | ····························fragmentTransitionImpl4.scheduleHideFragmentView(o8,·mView,·(ArrayList)c3); | |
448 | ····························OneShotPreDrawListener.add((View)this.getContainer(),·(Runnable)new·DefaultSpecialEffectsController$9(this,·(ArrayList)c3)); | |
449 | ························} | |
450 | ························else·{ | |
451 | ····························cloneTransition·=·o8; | |
452 | ························} | |
453 | ····················} | |
454 | ····················if·(specialEffectsController$Operation10.getFinalState()·==·SpecialEffectsController$Operation$State.VISIBLE)·{ | |
455 | ························list9.addAll(c3); | |
456 | ························if·(b3)·{ | |
457 | ····························fragmentTransitionImpl4.setEpicenter(cloneTransition,·rect5); | |
458 | ························} | |
459 | ························view13·=·view3; | |
460 | ····················} | 231 | ····················} |
461 | ····················else·{ | 232 | ····················else·{ |
| 233 | ························c3.removeAll(c2); |
462 | ························view13·=·view3; | |
463 | ························fragmentTransitionImpl4.setEpicenter(cloneTransition,·view3); | |
464 | ····················} | 234 | ····················} |
465 | ····················map7.put(specialEffectsController$Operation10,·b8); | |
466 | ····················if·(defaultSpecialEffectsController$TransitionInfo4.isOverlapAllowed())·{ | |
467 | ························final·Object·mergeTransitionsTogether2·=·fragmentTransitionImpl4.mergeTransitionsTogether(o4,·cloneTransition,·(Object)null); | |
468 | ························mergeTransitionsTogether·=·o7; | |
469 | ························o4·=·mergeTransitionsTogether2; | |
470 | ····················} | 235 | ················} |
| 236 | ················if·(c3.isEmpty())·{ |
| 237 | ····················fragmentTransitionImpl.addTarget(cloneTransition,·view); |
| 238 | ················} |
471 | ····················else·{ | 239 | ················else·{ |
472 | ························mergeTransitionsTogether·=·fragmentTransitionImpl4.mergeTransitionsTogether(o7,·cloneTransition,·(Object)null); | 240 | ····················fragmentTransitionImpl.addTargets(cloneTransition,·(ArrayList)c3); |
| 241 | ················} |
| 242 | ················if·(((Enum)defaultSpecialEffectsController$TransitionInfo4.getOperation().getType()).equals(SpecialEffectsController$Operation$Type.ADD))·{ |
| 243 | ····················list6.addAll(c3); |
| 244 | ····················if·(b2)·{ |
| 245 | ························fragmentTransitionImpl.setEpicenter(cloneTransition,·rect); |
473 | ····················} | 246 | ····················} |
| 247 | ····················view8·=·view7; |
| 248 | ················} |
| 249 | ················else·{ |
| 250 | ····················view8·=·view7; |
| 251 | ····················fragmentTransitionImpl.setEpicenter(cloneTransition,·view7); |
| 252 | ················} |
| 253 | ················if·(defaultSpecialEffectsController$TransitionInfo4.isOverlapAllowed())·{ |
| 254 | ····················mergeTransitionsTogether·=·fragmentTransitionImpl.mergeTransitionsTogether(mergeTransitionsTogether,·cloneTransition,·(Object)null); |
| 255 | ················} |
| 256 | ················else·{ |
| 257 | ····················mergeTransitionsTogether2·=·fragmentTransitionImpl.mergeTransitionsTogether(mergeTransitionsTogether2,·cloneTransition,·(Object)null); |
474 | ················} | 258 | ················} |
475 | ················iterator6·=·iterator8; | |
476 | ················specialEffectsController$Operation9·=·specialEffectsController$Operation2; | |
477 | ················view3·=·view13; | |
478 | ················view11·=·view12; | |
479 | ················specialEffectsController$Operation8·=·specialEffectsController$Operation; | |
480 | ············} | 259 | ············} |
| 260 | ············iterator9·=·iterator10; |
| 261 | ············view7·=·view8; |
| 262 | ············arrayMap·=·arrayMap4; |
| 263 | ············wrapTransitionInSet·=·o; |
| 264 | ············specialEffectsController$Operation3·=·specialEffectsController$Operation2; |
481 | ········} | 265 | ········} |
| 266 | ········final·Map·map·=·(Map)arrayMap; |
482 | ········final·Object·mergeTransitionsInSequence·=·fragmentTransitionImpl4.mergeTransitionsInSequence(o4,·mergeTransitionsTogether,·o); | 267 | ········final·Object·mergeTransitionsInSequence·=·fragmentTransitionImpl.mergeTransitionsInSequence(mergeTransitionsTogether,·mergeTransitionsTogether2,·wrapTransitionInSet); |
483 | ········for·(final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo5·:·list)·{ | 268 | ········for·(final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo5·:·list)·{ |
484 | ············if·(defaultSpecialEffectsController$TransitionInfo5.isVisibilityUnchanged())·{ | |
485 | ················continue; | |
486 | ············} | |
487 | ············if·(defaultSpecialEffectsController$TransitionInfo5.getTransition()·==·null)·{ | 269 | ············if·(defaultSpecialEffectsController$TransitionInfo5.getTransition()·!=·null)·{ |
488 | ················continue; | 270 | ················fragmentTransitionImpl.setListenerForTransitionEnd(defaultSpecialEffectsController$TransitionInfo5.getOperation().getFragment(),·mergeTransitionsInSequence,·defaultSpecialEffectsController$TransitionInfo5.getSignal(),·(Runnable)new·DefaultSpecialEffectsController$7(this,·defaultSpecialEffectsController$TransitionInfo5)); |
489 | ············} | 271 | ············} |
490 | ············fragmentTransitionImpl4.setListenerForTransitionEnd(defaultSpecialEffectsController$TransitionInfo5.getOperation().getFragment(),·mergeTransitionsInSequence,·defaultSpecialEffectsController$TransitionInfo5.getSignal(),·(Runnable)new·DefaultSpecialEffectsController$10(this,·defaultSpecialEffectsController$TransitionInfo5)); | |
491 | ········} | 272 | ········} |
492 | ········FragmentTransition.setViewVisibility((ArrayList)list9,·4); | 273 | ········FragmentTransition.setViewVisibility((ArrayList)list6,·4); |
493 | ········final·ArrayList·prepareSetNameOverridesReordered·=·fragmentTransitionImpl4.prepareSetNameOverridesReordered((ArrayList)c2); | 274 | ········final·ArrayList·prepareSetNameOverridesReordered·=·fragmentTransitionImpl.prepareSetNameOverridesReordered(c2); |
494 | ········fragmentTransitionImpl4.beginDelayedTransition(this.getContainer(),·mergeTransitionsInSequence); | 275 | ········fragmentTransitionImpl.beginDelayedTransition(this.getContainer(),·mergeTransitionsInSequence); |
495 | ········fragmentTransitionImpl4.setNameOverridesReordered((View)this.getContainer(),·(ArrayList)c,·(ArrayList)c2,·prepareSetNameOverridesReordered,·map5); | 276 | ········fragmentTransitionImpl.setNameOverridesReordered((View)this.getContainer(),·c,·c2,·prepareSetNameOverridesReordered,·map); |
496 | ········FragmentTransition.setViewVisibility((ArrayList)list9,·0); | 277 | ········FragmentTransition.setViewVisibility((ArrayList)list6,·0); |
497 | ········fragmentTransitionImpl4.swapSharedElementTargets(o,·(ArrayList)c,·(ArrayList)c2); | 278 | ········fragmentTransitionImpl.swapSharedElementTargets(wrapTransitionInSet,·c,·c2); |
498 | ········return·map7; | |
499 | ····} | 279 | ····} |
500 | ···· | 280 | ···· |
501 | ····void·applyContainerChanges(final·SpecialEffectsController$Operation·specialEffectsController$Operation)·{ | 281 | ····void·applyContainerChanges(final·SpecialEffectsController$Operation·specialEffectsController$Operation)·{ |
502 | ········specialEffectsController$Operation.getFinalState().applyState(specialEffectsController$Operation.getFragment().mView); | 282 | ········final·View·mView·=·specialEffectsController$Operation.getFragment().mView; |
| 283 | ········final·int·n·=·DefaultSpecialEffectsController$8.$SwitchMap$androidx$fragment$app$SpecialEffectsController$Operation$Type[((Enum)specialEffectsController$Operation.getType()).ordinal()]; |
| 284 | ········if·(n·!=·1)·{ |
| 285 | ············if·(n·!=·2)·{ |
| 286 | ················if·(n·==·3·||·n·==·4)·{ |
| 287 | ····················mView.setVisibility(0); |
| 288 | ················} |
| 289 | ············} |
| 290 | ············else·{ |
| 291 | ················this.getContainer().removeView(mView); |
| 292 | ············} |
| 293 | ········} |
| 294 | ········else·{ |
| 295 | ············mView.setVisibility(8); |
| 296 | ········} |
503 | ····} | 297 | ····} |
504 | ···· | 298 | ···· |
505 | ····void·cancelAllSpecialEffects(final·SpecialEffectsController$Operation·key)·{ | 299 | ····void·cancelAllSpecialEffects(final·SpecialEffectsController$Operation·key)·{ |
506 | ········final·HashSet<CancellationSignal>·set·=·(HashSet<CancellationSignal>)this.mRunningOperations.remove(key); | 300 | ········final·HashSet<CancellationSignal>·set·=·(HashSet<CancellationSignal>)this.mRunningOperations.remove(key); |
507 | ········if·(set·!=·null)·{ | 301 | ········if·(set·!=·null)·{ |
508 | ············final·Iterator<CancellationSignal>·iterator·=·set.iterator(); | 302 | ············final·Iterator<CancellationSignal>·iterator·=·set.iterator(); |
509 | ············while·(iterator.hasNext())·{ | 303 | ············while·(iterator.hasNext())·{ |
Offset 540, 69 lines modified | Offset 334, 56 lines modified |
540 | ········while·(true)·{ | 334 | ········while·(true)·{ |
541 | ············final·boolean·hasNext·=·iterator.hasNext(); | 335 | ············final·boolean·hasNext·=·iterator.hasNext(); |
542 | ············b2·=·true; | 336 | ············b2·=·true; |
543 | ············if·(!hasNext)·{ | 337 | ············if·(!hasNext)·{ |
544 | ················break; | 338 | ················break; |
545 | ············} | 339 | ············} |
546 | ············final·SpecialEffectsController$Operation·specialEffectsController$Operation3·=·(SpecialEffectsController$Operation)iterator.next(); | 340 | ············final·SpecialEffectsController$Operation·specialEffectsController$Operation3·=·(SpecialEffectsController$Operation)iterator.next(); |
547 | ············final·SpecialEffectsController$Operation$State·from·=·SpecialEffectsController$Operation$State.from(specialEffectsController$Operation3.getFragment().mView); | |
548 | ············final·int·n·=·DefaultSpecialEffectsController$11.$SwitchMap$androidx$fragment$app$SpecialEffectsController$Operation$State[((Enum)specialEffectsController$Operation3.getFinalState()).ordinal()]; | 341 | ············final·int·n·=·DefaultSpecialEffectsController$8.$SwitchMap$androidx$fragment$app$SpecialEffectsController$Operation$Type[((Enum)specialEffectsController$Operation3.getType()).ordinal()]; |
549 | ············if·(n·!=·(b2·?·1·:·0)·&&·n·!=·2·&&·n·!=·3)·{ | 342 | ············if·(n·!=·(b2·?·1·:·0)·&&·n·!=·2)·{ |
550 | ················if·(n·!=·4)·{ | 343 | ················if·(n·!=·3·&&·n·!=·4)·{ |
551 | ····················continue; | |
552 | ················} | |
553 | ················if·(from·==·SpecialEffectsController$Operation$State.VISIBLE)·{ | |
554 | ····················continue; | 344 | ····················continue; |
555 | ················} | 345 | ················} |
556 | ················specialEffectsController$Operation2·=·specialEffectsController$Operation3; | 346 | ················specialEffectsController$Operation2·=·specialEffectsController$Operation3; |
557 | ············} | 347 | ············} |
558 | ············else·{ | 348 | ············else·{ |
559 | ················if·(from·!=·SpecialEffectsController$Operation$State.VISIBLE·||·specialEffectsController$Operation·!=·null)·{ | 349 | ················if·(specialEffectsController$Operation·!=·null)·{ |
560 | ····················continue; | 350 | ····················continue; |
561 | ················} | 351 | ················} |
562 | ················specialEffectsController$Operation·=·specialEffectsController$Operation3; | 352 | ················specialEffectsController$Operation·=·specialEffectsController$Operation3; |
563 | ············} | 353 | ············} |
564 | ········} | 354 | ········} |
565 | ········final·ArrayList<DefaultSpecialEffectsController$AnimationInfo>·list·=·new·ArrayList<DefaultSpecialEffectsController$AnimationInfo>(); | 355 | ········final·ArrayList<DefaultSpecialEffectsController$AnimationInfo>·list·=·new·ArrayList<DefaultSpecialEffectsController$AnimationInfo>(); |
566 | ········final·ArrayList<DefaultSpecialEffectsController$TransitionInfo>·list2·=·new·ArrayList<DefaultSpecialEffectsController$TransitionInfo>(); | 356 | ········final·ArrayList<DefaultSpecialEffectsController$TransitionInfo>·list2·=·new·ArrayList<DefaultSpecialEffectsController$TransitionInfo>(); |
567 | ········final·ArrayList<SpecialEffectsController$Operation>·list3·=·new·ArrayList<SpecialEffectsController$Operation>(c); | 357 | ········final·ArrayList<SpecialEffectsController$Operation>·list3·=·new·ArrayList<SpecialEffectsController$Operation>(c); |
| 358 | ········for·(final·SpecialEffectsController$Operation·specialEffectsController$Operation4·:·c)·{ |
568 | ········final·Iterator<SpecialEffectsController$Operation>·iterator2·=·c.iterator(); | |
569 | ········while·(true)·{ | |
570 | ············final·boolean·hasNext2·=·iterator2.hasNext(); | |
571 | ············boolean·b3·=·false; | |
572 | ············if·(!hasNext2)·{ | |
573 | ················break; | |
574 | ············} | |
575 | ············final·SpecialEffectsController$Operation·specialEffectsController$Operation4·=·(SpecialEffectsController$Operation)iterator2.next(); | |
576 | ············final·CancellationSignal·cancellationSignal·=·new·CancellationSignal(); | 359 | ············final·CancellationSignal·cancellationSignal·=·new·CancellationSignal(); |
577 | ············this.addCancellationSignal(specialEffectsController$Operation4,·cancellationSignal); | 360 | ············this.addCancellationSignal(specialEffectsController$Operation4,·cancellationSignal); |
578 | ············list.add(new·DefaultSpecialEffectsController$AnimationInfo(specialEffectsController$Operation4,·cancellationSignal)); | 361 | ············list.add(new·DefaultSpecialEffectsController$AnimationInfo(specialEffectsController$Operation4,·cancellationSignal)); |
579 | ············final·CancellationSignal·cancellationSignal2·=·new·CancellationSignal(); | 362 | ············final·CancellationSignal·cancellationSignal2·=·new·CancellationSignal(); |
580 | ············this.addCancellationSignal(specialEffectsController$Operation4,·cancellationSignal2); | 363 | ············this.addCancellationSignal(specialEffectsController$Operation4,·cancellationSignal2); |
| 364 | ············boolean·b3·=·false; |
581 | ············Label_0320:·{ | 365 | ············Label_0277:·{ |
582 | ················if·(b)·{ | 366 | ················if·(b)·{ |
583 | ····················if·(specialEffectsController$Operation4·!=·specialEffectsController$Operation)·{ | 367 | ····················if·(specialEffectsController$Operation4·!=·specialEffectsController$Operation)·{ |
584 | ························break·Label_0320; | 368 | ························break·Label_0277; |
585 | ····················} | 369 | ····················} |
586 | ················} | 370 | ················} |
587 | ················else·if·(specialEffectsController$Operation4·!=·specialEffectsController$Operation2)·{ | 371 | ················else·if·(specialEffectsController$Operation4·!=·specialEffectsController$Operation2)·{ |
588 | ····················break·Label_0320; | 372 | ····················break·Label_0277; |
589 | ················} | 373 | ················} |
590 | ················b3·=·b2; | 374 | ················b3·=·b2; |
591 | ············} | 375 | ············} |
592 | ············list2.add(new·DefaultSpecialEffectsController$TransitionInfo(specialEffectsController$Operation4,·cancellationSignal2,·b,·b3)); | 376 | ············list2.add(new·DefaultSpecialEffectsController$TransitionInfo(specialEffectsController$Operation4,·cancellationSignal2,·b,·b3)); |
593 | ············specialEffectsController$Operation4.addCompletionListener((Runnable)new·DefaultSpecialEffectsController$1(this,·specialEffectsController$Operation4)); | |
594 | ············specialEffectsController$Operation4.addCompletionListener((Runnable)new·DefaultSpecialEffectsController$2(this,·(List)list3,·specialEffectsController$Operation4)); | 377 | ············specialEffectsController$Operation4.addCompletionListener((Runnable)new·DefaultSpecialEffectsController$1(this,·(List)list3,·specialEffectsController$Operation4)); |
595 | ············specialEffectsController$Operation4.getCancellationSignal().setOnCancelListener((CancellationSignal$OnCancelListener)new·DefaultSpecialEffectsController$3(this,·specialEffectsController$Operation4)); | 378 | ············specialEffectsController$Operation4.getCancellationSignal().setOnCancelListener((CancellationSignal$OnCancelListener)new·DefaultSpecialEffectsController$2(this,·specialEffectsController$Operation4)); |
596 | ········} | 379 | ········} |
597 | ········final·Map·startTransitions·=·this.startTransitions(list2,·b,·specialEffectsController$Operation,·specialEffectsController$Operation2); | 380 | ········this.startTransitions(list2,·b,·specialEffectsController$Operation,·specialEffectsController$Operation2); |
598 | ········final·boolean·containsValue·=·startTransitions.containsValue(Boolean.TRUE); | |
599 | ········for·(final·DefaultSpecialEffectsController$AnimationInfo·defaultSpecialEffectsController$AnimationInfo·:·list)·{ | 381 | ········for·(final·DefaultSpecialEffectsController$AnimationInfo·defaultSpecialEffectsController$AnimationInfo·:·list)·{ |
| 382 | ············this.startAnimation(defaultSpecialEffectsController$AnimationInfo.getOperation(),·defaultSpecialEffectsController$AnimationInfo.getSignal()); |
600 | ············final·SpecialEffectsController$Operation·operation·=·defaultSpecialEffectsController$AnimationInfo.getOperation(); | |
601 | ············this.startAnimation(operation,·defaultSpecialEffectsController$AnimationInfo.getSignal(),·containsValue,·startTransitions.containsKey(operation)·&&·(boolean)startTransitions.get(operation)); | |
602 | ········} | 383 | ········} |
603 | ········final·Iterator<Object>·iterator4·=·list3.iterator(); | 384 | ········final·Iterator<Object>·iterator4·=·list3.iterator(); |
604 | ········while·(iterator4.hasNext())·{ | 385 | ········while·(iterator4.hasNext())·{ |
605 | ············this.applyContainerChanges(iterator4.next()); | 386 | ············this.applyContainerChanges(iterator4.next()); |
606 | ········} | 387 | ········} |
607 | ········list3.clear(); | 388 | ········list3.clear(); |
608 | ····} | 389 | ····} |
Offset 626, 17 lines modified | Offset 407, 8 lines modified |
626 | ····void·removeCancellationSignal(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·o)·{ | 407 | ····void·removeCancellationSignal(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·o)·{ |
627 | ········final·HashSet·set·=·(HashSet)this.mRunningOperations.get(specialEffectsController$Operation); | 408 | ········final·HashSet·set·=·(HashSet)this.mRunningOperations.get(specialEffectsController$Operation); |
628 | ········if·(set·!=·null·&&·set.remove(o)·&&·set.isEmpty())·{ | 409 | ········if·(set·!=·null·&&·set.remove(o)·&&·set.isEmpty())·{ |
629 | ············this.mRunningOperations.remove(specialEffectsController$Operation); | 410 | ············this.mRunningOperations.remove(specialEffectsController$Operation); |
630 | ············specialEffectsController$Operation.complete(); | 411 | ············specialEffectsController$Operation.complete(); |
631 | ········} | 412 | ········} |
632 | ····} | 413 | ····} |
633 | ···· | |
634 | ····void·retainMatchingViews(final·ArrayMap·arrayMap,·final·Collection·collection)·{ | |
635 | ········final·Iterator<Map.Entry<K,·View>>·iterator·=·(Iterator<Map.Entry<K,·View>>)arrayMap.entrySet().iterator(); | |
636 | ········while·(iterator.hasNext())·{ | |
637 | ············if·(!collection.contains(ViewCompat.getTransitionName((View)((Map.Entry<K,·View>)iterator.next()).getValue())))·{ | |
638 | ················iterator.remove(); | |
639 | ············} | |
640 | ········} | |
641 | ····} | |
642 | } | 414 | } |