Offset 1, 29 lines modifiedOffset 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·SpecialEffectsController23 class·DefaultSpecialEffectsController·extends·SpecialEffectsController
26 {24 {
Offset 37, 91 lines modifiedOffset 35, 51 lines modified
37 ····private·void·addCancellationSignal(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·cancellationSignal)·{35 ····private·void·addCancellationSignal(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·cancellationSignal)·{
38 ········if·(this.mRunningOperations.get(specialEffectsController$Operation)·==·null)·{36 ········if·(this.mRunningOperations.get(specialEffectsController$Operation)·==·null)·{
39 ············this.mRunningOperations.put(specialEffectsController$Operation,·new·HashSet());37 ············this.mRunningOperations.put(specialEffectsController$Operation,·new·HashSet());
40 ········}38 ········}
41 ········((HashSet<CancellationSignal>)this.mRunningOperations.get(specialEffectsController$Operation)).add(cancellationSignal);39 ········((HashSet<CancellationSignal>)this.mRunningOperations.get(specialEffectsController$Operation)).add(cancellationSignal);
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;
49 ········final·SpecialEffectsController$Operation$State·from·=·SpecialEffectsController$Operation$State.from(mView);47 ········final·FragmentAnim$AnimationOrAnimator·loadAnimation·=·FragmentAnim.loadAnimation(context,·fragment,·specialEffectsController$Operation.getType()·==·SpecialEffectsController$Operation$Type.ADD·||·specialEffectsController$Operation.getType()·==·SpecialEffectsController$Operation$Type.SHOW);
50 ········final·SpecialEffectsController$Operation$State·finalState·=·specialEffectsController$Operation.getFinalState();48 ········if·(loadAnimation·==·null)·{
51 ········if·(from·!=·finalState)·{49 ············this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal);
52 ············final·SpecialEffectsController$Operation$State·visible·=·SpecialEffectsController$Operation$State.VISIBLE;50 ············return;
53 ············if·(from·==·visible·||·finalState·==·visible)·{51 ········}
54 ················final·FragmentAnim$AnimationOrAnimator·loadAnimation·=·FragmentAnim.loadAnimation(context,·fragment,·finalState·==·SpecialEffectsController$Operation$State.VISIBLE);52 ········container.startViewTransition(mView);
55 ················if·(loadAnimation·==·null)·{53 ········if·(loadAnimation.animation·!=·null)·{
56 ····················this.removeCancellationSignal(specialEffectsController$Operation,·cancellationSignal);54 ············Object·o;
57 ····················return;55 ············if·(specialEffectsController$Operation.getType()·!=·SpecialEffectsController$Operation$Type.ADD·&&·specialEffectsController$Operation.getType()·!=·SpecialEffectsController$Operation$Type.SHOW)·{
58 ················}56 ················o·=·new·FragmentAnim$EndViewTransitionAnimation(loadAnimation.animation,·container,·mView);
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); 
84 ················if·(loadAnimation.animation·!=·null)·{ 
85 ····················Object·o; 
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); 
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;74 ········SpecialEffectsController$Operation·specialEffectsController$Operation3·=·specialEffectsController$Operation2;
109 ········SpecialEffectsController$Operation·specialEffectsController$Operation3·=·specialEffectsController$Operation; 
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 modifiedOffset 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();
150 ········ArrayList·list2·=·new·ArrayList();107 ········final·ArrayList·list2·=·new·ArrayList();
151 ········ArrayList·list3·=·new·ArrayList();108 ········final·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();
165 ············Boolean·b4;122 ············Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator5;
166 ············SpecialEffectsController$Operation·specialEffectsController$Operation5;123 ············if·(defaultSpecialEffectsController$TransitionInfo3.hasSharedElementTransition()·&&·specialEffectsController$Operation·!=·null·&&·specialEffectsController$Operation3·!=·null)·{
167 ············ArrayMap·arrayMap4;124 ················wrapTransitionInSet·=·fragmentTransitionImpl.wrapTransitionInSet(fragmentTransitionImpl.cloneTransition(defaultSpecialEffectsController$TransitionInfo3.getSharedElementTransition()));
168 ············ArrayList·list5;125 ················final·Fragment·fragment·=·defaultSpecialEffectsController$TransitionInfo3.getOperation().getFragment();
169 ············Map<SpecialEffectsController$Operation,·Boolean>·map2;126 ················ArrayList<String>·list4;
170 ············View·view6;127 ················ArrayList·list5;
171 ············FragmentTransitionImpl·fragmentTransitionImpl2;128 ················if·(!b)·{
172 ············Boolean·b7;129 ····················list4·=·(ArrayList<String>)fragment.getSharedElementSourceNames();
173 ············SpecialEffectsController$Operation·specialEffectsController$Operation6;130 ····················list5·=·fragment.getSharedElementTargetNames();
174 ············ArrayList·list6; 
175 ············Rect·rect3; 
176 ············if·(defaultSpecialEffectsController$TransitionInfo3.hasSharedElementTransition()·&&·specialEffectsController$Operation3·!=·null·&&·specialEffectsController$Operation4·!=·null)·{ 
177 ················final·Object·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(); 
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; 
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)·{ 
197 ····················sharedElementCallback·=·specialEffectsController$Operation.getFragment().getExitTransitionCallback(); 
198 ····················sharedElementCallback2·=·specialEffectsController$Operation2.getFragment().getEnterTransitionCallback(); 
199 ················}131 ················}
200 ················else·{132 ················else·{
201 ····················sharedElementCallback·=·specialEffectsController$Operation.getFragment().getEnterTransitionCallback();133 ····················list4·=·(ArrayList<String>)fragment.getSharedElementTargetNames();
202 ····················sharedElementCallback2·=·specialEffectsController$Operation2.getFragment().getExitTransitionCallback();134 ····················list5·=·fragment.getSharedElementSourceNames();
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>·list6;
 137 ················Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator4;
 138 ················View·view3;
 139 ················for·(int·size·=·list4.size(),·i·=·0;·i·<·size;·++i,·list4·=·list6,·iterator3·=·iterator4,·view2·=·view3)·{
 140 ····················list6·=·list4;
 141 ····················final·String·value·=·list4.get(i);
 142 ····················iterator4·=·iterator3;
 143 ····················final·String·s·=·(String)value;
 144 ····················final·String·value2·=·list5.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>·list7·=·list4;
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)list4);
210 ················Boolean·b6;154 ················arrayMap.retainAll((Collection)arrayMap2.keySet());
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()); 
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)list5);
 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())·{
263 ····················list2.clear();162 ····················list2.clear();
264 ····················list3.clear();163 ····················list3.clear();
265 ····················specialEffectsController$Operation5·=·specialEffectsController$Operation2;164 ····················view2·=·view4;
266 ····················arrayMap4·=·arrayMap;165 ····················wrapTransitionInSet·=·null;
267 ····················list5·=·list2; 
268 ····················map2·=·map; 
269 ····················view6·=·view; 
270 ····················fragmentTransitionImpl2·=·fragmentTransitionImpl; 
271 ····················view2·=·view3; 
272 ····················b7·=·b6; 
273 ····················o·=·null; 
274 ····················specialEffectsController$Operation6·=·specialEffectsController$Operation; 
275 ····················list6·=·list3; 
276 ····················rect3·=·rect2; 
277 ················}166 ················}
278 ················else·{167 ················else·{
279 ····················FragmentTransition.callSharedElementStartEnd(specialEffectsController$Operation2.getFragment(),·specialEffectsController$Operation.getFragment(),·b2,·arrayMap2,·true);168 ····················Iterator<View>·iterator7;
280 ····················final·ViewGroup·container·=·this.getContainer();169 ····················for·(Iterator<View>·iterator6·=·arrayMap2.values().iterator();·iterator6.hasNext();·iterator6·=·iterator7)·{
281 ····················final·DefaultSpecialEffectsController$7·defaultSpecialEffectsController$7·=·new(androidx.fragment.app.DefaultSpecialEffectsController$7.class);170 ························final·View·next·=·iterator6.next();
282 ····················final·Object·o3·=·o2;171 ························iterator7·=·iterator6;
283 ····················final·DefaultSpecialEffectsController$7·defaultSpecialEffectsController$8·=·defaultSpecialEffectsController$7;172 ························this.captureTransitioningViews(list2,·next);
284 ····················arrayMap4·=·arrayMap;173 ····················}
285 ····················final·Map<SpecialEffectsController$Operation,·Boolean>·map3·=·map;174 ····················View·view5;
286 ····················list6·=·list3;175 ····················if·(!list7.isEmpty())·{
287 ····················final·View·view7·=·view;176 ························view5·=·(View)((SimpleArrayMap)arrayMap2).get((Object)(String)list7.get(0));
288 ····················final·ArrayList·list7·=·list2;177 ························fragmentTransitionImpl.setEpicenter(wrapTransitionInSet,·view5);
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()); 
297 ····················} 
298 ····················if·(!sharedElementSourceNames.isEmpty())·{ 
299 ························final·View·view8·=·(View)((SimpleArrayMap)arrayMap2).get((Object)(String)sharedElementSourceNames.get(0)); 
300 ························fragmentTransitionImpl.setEpicenter(o3,·view8); 
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;182 ····················final·Iterator·iterator8·=·arrayMap3.values().iterator();
311 ····················Label_1631:·{183 ····················while·(iterator8.hasNext())·{
312 ························if·(!list8.isEmpty())·{184 ························this.captureTransitioningViews(list3,·iterator8.next());
313 ····························final·View·view9·=·(View)((SimpleArrayMap)arrayMap3).get((Object)(String)list8.get(0));185 ····················}
314 ····························if·(view9·!=·null)·{186 ····················if·(!list5.isEmpty())·{
315 ································final·ViewGroup·container2·=·this.getContainer();187 ························final·View·view6·=·(View)((SimpleArrayMap)arrayMap3).get((Object)(String)list5.get(0));
316 ································rect3·=·rect4;188 ························if·(view6·!=·null)·{
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;190 ····························b2·=·b3;
319 ································b3·=·true; 
320 ································break·Label_1631; 
321 ····························} 
322 ························}191 ························}
323 ························rect3·=·rect4; 
324 ························view10·=·view7; 
325 ····················}192 ····················}
326 ····················fragmentTransitionImpl.setSharedElementTargets(o3,·view10,·(ArrayList)list7);193 ····················fragmentTransitionImpl.addTargets(wrapTransitionInSet,·list2);
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·{
342 ················arrayMap4·=·arrayMap;198 ················iterator5·=·iterator3;
343 ················list5·=·list2;199 ············}
344 ················specialEffectsController$Operation6·=·specialEffectsController$Operation3;200 ············iterator3·=·iterator5;
345 ················b7·=·true;201 ········}
346 ················b4·=·false;202 ········View·view7·=·view2;
347 ················view6·=·view;203 ········final·ArrayList·list8·=·new·ArrayList();
348 ················fragmentTransitionImpl2·=·fragmentTransitionImpl;204 ········Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator9·=·list.iterator();
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 ············} 
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 ········} 
370 ········final·Map·map5·=·(Map)arrayMap; 
371 ········final·ArrayList·list9·=·list2; 
372 ········SpecialEffectsController$Operation·specialEffectsController$Operation8·=·specialEffectsController$Operation3; 
373 ········final·Boolean·b8·=·true; 
374 ········Boolean·b9·=·false; 
375 ········View·view11·=·view; 
376 ········final·FragmentTransitionImpl·fragmentTransitionImpl4·=·fragmentTransitionImpl; 
377 ········final·Map<SpecialEffectsController$Operation,·Boolean>·map6·=·map; 
378 ········final·ArrayList·list10·=·list3; 
379 ········final·Rect·rect5·=·rect; 
380 ········SpecialEffectsController$Operation·specialEffectsController$Operation9·=·specialEffectsController$Operation4; 
381 ········final·Map<SpecialEffectsController$Operation,·Boolean>·map7·=·map6; 
382 ········final·ArrayList·list11·=·new·ArrayList(); 
383 ········Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator6·=·list.iterator(); 
384 ········Object·o4·=·null; 
385 ········Object·mergeTransitionsTogether·=·null;205 ········Object·mergeTransitionsTogether·=·null;
386 ········while·(iterator6.hasNext())·{206 ········Object·mergeTransitionsTogether2·=·null;
387 ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo4·=·(DefaultSpecialEffectsController$TransitionInfo)iterator6.next();207 ········while·(iterator9.hasNext())·{
388 ············if·(defaultSpecialEffectsController$TransitionInfo4.isVisibilityUnchanged())·{208 ············final·DefaultSpecialEffectsController$TransitionInfo·defaultSpecialEffectsController$TransitionInfo4·=·(DefaultSpecialEffectsController$TransitionInfo)iterator9.next();
389 ················final·SpecialEffectsController$Operation·operation·=·defaultSpecialEffectsController$TransitionInfo4.getOperation();209 ············final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator10·=·iterator9;
390 ················final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator7·=·iterator6;210 ············final·Object·cloneTransition·=·fragmentTransitionImpl.cloneTransition(defaultSpecialEffectsController$TransitionInfo4.getTransition());
391 ················map7.put(operation,·b9);211 ············final·ArrayMap·arrayMap4·=·arrayMap;
392 ················final·SpecialEffectsController$Operation·operation2·=·defaultSpecialEffectsController$TransitionInfo4.getOperation();212 ············final·SpecialEffectsController$Operation·operation·=·defaultSpecialEffectsController$TransitionInfo4.getOperation();
393 ················final·Object·o5·=·mergeTransitionsTogether;213 ············final·boolean·b4·=·wrapTransitionInSet·!=·null·&&·(operation·==·specialEffectsController$Operation·||·operation·==·specialEffectsController$Operation3)·&&·b3;
394 ················this.removeCancellationSignal(operation2,·defaultSpecialEffectsController$TransitionInfo4.getSignal());214 ············Object·o;
395 ················mergeTransitionsTogether·=·o5;215 ············View·view8;
396 ················iterator6·=·iterator7;216 ············if·(cloneTransition·==·null)·{
 217 ················if·(!b4)·{
 218 ····················this.removeCancellationSignal(defaultSpecialEffectsController$TransitionInfo4.getOperation(),·defaultSpecialEffectsController$TransitionInfo4.getSignal());
 219 ················}
 220 ················o·=·wrapTransitionInSet;
 221 ················view8·=·view7;
397 ············}222 ············}
398 ············else·{223 ············else·{
399 ················final·Iterator<DefaultSpecialEffectsController$TransitionInfo>·iterator8·=·iterator6;224 ················final·ArrayList·list9·=·new·ArrayList();
400 ················final·Object·o6·=·mergeTransitionsTogether;225 ················final·SpecialEffectsController$Operation·operation2·=·defaultSpecialEffectsController$TransitionInfo4.getOperation();
401 ················final·Boolean·b10·=·b9;226 ················o·=·wrapTransitionInSet;
402 ················Object·cloneTransition·=·fragmentTransitionImpl4.cloneTransition(defaultSpecialEffectsController$TransitionInfo4.getTransition());227 ················this.captureTransitioningViews(list9,·operation2.getFragment().mView);
403 ················final·SpecialEffectsController$Operation·operation3·=·defaultSpecialEffectsController$TransitionInfo4.getOperation();228 ················if·(b4)·{
404 ················final·boolean·b11·=·o·!=·null·&&·(operation3·==·specialEffectsController$Operation8·||·operation3·==·specialEffectsController$Operation9);229 ····················if·(operation·==·specialEffectsController$Operation)·{
405 ················View·view12;230 ························list9.removeAll(list2);
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·list12·=·new·ArrayList(); 
419 ····················b9·=·b10; 
420 ····················this.captureTransitioningViews(list12,·operation3.getFragment().mView); 
421 ····················if·(b11)·{ 
422 ························if·(operation3·==·specialEffectsController$Operation8)·{ 
423 ····························list12.removeAll(list9); 
424 ························} 
425 ························else·{ 
426 ····························list12.removeAll(list10); 
427 ························} 
428 ····················} 
429 ····················SpecialEffectsController$Operation·specialEffectsController$Operation10; 
430 ····················Object·o7; 
431 ····················if·(list12.isEmpty())·{ 
432 ························fragmentTransitionImpl4.addTarget(cloneTransition,·view11); 
433 ························view12·=·view11; 
434 ························specialEffectsController$Operation10·=·operation3; 
435 ························o7·=·o6; 
436 ····················} 
437 ····················else·{ 
438 ························fragmentTransitionImpl4.addTargets(cloneTransition,·(ArrayList)list12); 
439 ························specialEffectsController$Operation10·=·operation3; 
440 ························view12·=·view11; 
441 ························final·Object·o8·=·cloneTransition; 
442 ························o7·=·o6; 
443 ························fragmentTransitionImpl4.scheduleRemoveTargets(cloneTransition,·cloneTransition,·(ArrayList)list12,·(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)list12); 
448 ····························OneShotPreDrawListener.add((View)this.getContainer(),·(Runnable)new·DefaultSpecialEffectsController$9(this,·(ArrayList)list12)); 
449 ························} 
450 ························else·{ 
451 ····························cloneTransition·=·o8; 
452 ························} 
453 ····················} 
454 ····················if·(specialEffectsController$Operation10.getFinalState()·==·SpecialEffectsController$Operation$State.VISIBLE)·{ 
455 ························list11.addAll(list12); 
456 ························if·(b3)·{ 
457 ····························fragmentTransitionImpl4.setEpicenter(cloneTransition,·rect5); 
458 ························} 
459 ························view13·=·view3; 
460 ····················}231 ····················}
461 ····················else·{232 ····················else·{
462 ························view13·=·view3;233 ························list9.removeAll(list3);
463 ························fragmentTransitionImpl4.setEpicenter(cloneTransition,·view3); 
464 ····················}234 ····················}
465 ····················map7.put(specialEffectsController$Operation10,·b8);235 ················}
466 ····················if·(defaultSpecialEffectsController$TransitionInfo4.isOverlapAllowed())·{236 ················if·(list9.isEmpty())·{
467 ························final·Object·mergeTransitionsTogether2·=·fragmentTransitionImpl4.mergeTransitionsTogether(o4,·cloneTransition,·(Object)null);237 ····················fragmentTransitionImpl.addTarget(cloneTransition,·view);
468 ························mergeTransitionsTogether·=·o7;238 ················}
469 ························o4·=·mergeTransitionsTogether2;239 ················else·{
470 ····················}240 ····················fragmentTransitionImpl.addTargets(cloneTransition,·(ArrayList)list9);
471 ····················else·{241 ················}
472 ························mergeTransitionsTogether·=·fragmentTransitionImpl4.mergeTransitionsTogether(o7,·cloneTransition,·(Object)null);242 ················if·(((Enum)defaultSpecialEffectsController$TransitionInfo4.getOperation().getType()).equals(SpecialEffectsController$Operation$Type.ADD))·{
 243 ····················list8.addAll(list9);
 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 ········}
482 ········final·Object·mergeTransitionsInSequence·=·fragmentTransitionImpl4.mergeTransitionsInSequence(o4,·mergeTransitionsTogether,·o);266 ········final·Map·map·=·(Map)arrayMap;
 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())·{269 ············if·(defaultSpecialEffectsController$TransitionInfo5.getTransition()·!=·null)·{
485 ················continue;270 ················fragmentTransitionImpl.setListenerForTransitionEnd(defaultSpecialEffectsController$TransitionInfo5.getOperation().getFragment(),·mergeTransitionsInSequence,·defaultSpecialEffectsController$TransitionInfo5.getSignal(),·(Runnable)new·DefaultSpecialEffectsController$7(this,·defaultSpecialEffectsController$TransitionInfo5));
486 ············} 
487 ············if·(defaultSpecialEffectsController$TransitionInfo5.getTransition()·==·null)·{ 
488 ················continue; 
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)list11,·4);273 ········FragmentTransition.setViewVisibility((ArrayList)list8,·4);
493 ········final·ArrayList·prepareSetNameOverridesReordered·=·fragmentTransitionImpl4.prepareSetNameOverridesReordered((ArrayList)list10);274 ········final·ArrayList·prepareSetNameOverridesReordered·=·fragmentTransitionImpl.prepareSetNameOverridesReordered(list3);
494 ········fragmentTransitionImpl4.beginDelayedTransition(this.getContainer(),·mergeTransitionsInSequence);275 ········fragmentTransitionImpl.beginDelayedTransition(this.getContainer(),·mergeTransitionsInSequence);
495 ········fragmentTransitionImpl4.setNameOverridesReordered((View)this.getContainer(),·(ArrayList)list9,·(ArrayList)list10,·prepareSetNameOverridesReordered,·map5);276 ········fragmentTransitionImpl.setNameOverridesReordered((View)this.getContainer(),·list2,·list3,·prepareSetNameOverridesReordered,·map);
496 ········FragmentTransition.setViewVisibility((ArrayList)list11,·0);277 ········FragmentTransition.setViewVisibility((ArrayList)list8,·0);
497 ········fragmentTransitionImpl4.swapSharedElementTargets(o,·(ArrayList)list9,·(ArrayList)list10);278 ········fragmentTransitionImpl.swapSharedElementTargets(wrapTransitionInSet,·list2,·list3);
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·specialEffectsController$Operation)·{299 ····void·cancelAllSpecialEffects(final·SpecialEffectsController$Operation·specialEffectsController$Operation)·{
506 ········final·HashSet<CancellationSignal>·set·=·(HashSet<CancellationSignal>)this.mRunningOperations.remove(specialEffectsController$Operation);300 ········final·HashSet<CancellationSignal>·set·=·(HashSet<CancellationSignal>)this.mRunningOperations.remove(specialEffectsController$Operation);
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 modifiedOffset 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);341 ············final·int·n·=·DefaultSpecialEffectsController$8.$SwitchMap$androidx$fragment$app$SpecialEffectsController$Operation$Type[((Enum)specialEffectsController$Operation3.getType()).ordinal()];
548 ············final·int·n·=·DefaultSpecialEffectsController$11.$SwitchMap$androidx$fragment$app$SpecialEffectsController$Operation$State[((Enum)specialEffectsController$Operation3.getFinalState()).ordinal()];342 ············if·(n·!=·(b2·?·1·:·0)·&&·n·!=·2)·{
549 ············if·(n·!=·(b2·?·1·:·0)·&&·n·!=·2·&&·n·!=·3)·{343 ················if·(n·!=·3·&&·n·!=·4)·{
550 ················if·(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>·list2·=·new·ArrayList<DefaultSpecialEffectsController$AnimationInfo>();355 ········final·ArrayList<DefaultSpecialEffectsController$AnimationInfo>·list2·=·new·ArrayList<DefaultSpecialEffectsController$AnimationInfo>();
566 ········final·ArrayList<DefaultSpecialEffectsController$TransitionInfo>·list3·=·new·ArrayList<DefaultSpecialEffectsController$TransitionInfo>();356 ········final·ArrayList<DefaultSpecialEffectsController$TransitionInfo>·list3·=·new·ArrayList<DefaultSpecialEffectsController$TransitionInfo>();
567 ········final·ArrayList<SpecialEffectsController$Operation>·list4·=·new·ArrayList<SpecialEffectsController$Operation>(list);357 ········final·ArrayList<SpecialEffectsController$Operation>·list4·=·new·ArrayList<SpecialEffectsController$Operation>(list);
568 ········final·Iterator<SpecialEffectsController$Operation>·iterator2·=·list.iterator();358 ········for·(final·SpecialEffectsController$Operation·specialEffectsController$Operation4·:·list)·{
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 ············list2.add(new·DefaultSpecialEffectsController$AnimationInfo(specialEffectsController$Operation4,·cancellationSignal));361 ············list2.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);
581 ············Label_0320:·{364 ············boolean·b3·=·false;
 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 ············list3.add(new·DefaultSpecialEffectsController$TransitionInfo(specialEffectsController$Operation4,·cancellationSignal2,·b,·b3));376 ············list3.add(new·DefaultSpecialEffectsController$TransitionInfo(specialEffectsController$Operation4,·cancellationSignal2,·b,·b3));
593 ············specialEffectsController$Operation4.addCompletionListener((Runnable)new·DefaultSpecialEffectsController$1(this,·specialEffectsController$Operation4));377 ············specialEffectsController$Operation4.addCompletionListener((Runnable)new·DefaultSpecialEffectsController$1(this,·(List)list4,·specialEffectsController$Operation4));
594 ············specialEffectsController$Operation4.addCompletionListener((Runnable)new·DefaultSpecialEffectsController$2(this,·(List)list4,·specialEffectsController$Operation4));378 ············specialEffectsController$Operation4.getCancellationSignal().setOnCancelListener((CancellationSignal$OnCancelListener)new·DefaultSpecialEffectsController$2(this,·specialEffectsController$Operation4));
595 ············specialEffectsController$Operation4.getCancellationSignal().setOnCancelListener((CancellationSignal$OnCancelListener)new·DefaultSpecialEffectsController$3(this,·specialEffectsController$Operation4)); 
596 ········}379 ········}
597 ········final·Map·startTransitions·=·this.startTransitions(list3,·b,·specialEffectsController$Operation,·specialEffectsController$Operation2);380 ········this.startTransitions(list3,·b,·specialEffectsController$Operation,·specialEffectsController$Operation2);
598 ········final·boolean·containsValue·=·startTransitions.containsValue(Boolean.TRUE); 
599 ········for·(final·DefaultSpecialEffectsController$AnimationInfo·defaultSpecialEffectsController$AnimationInfo·:·list2)·{381 ········for·(final·DefaultSpecialEffectsController$AnimationInfo·defaultSpecialEffectsController$AnimationInfo·:·list2)·{
600 ············final·SpecialEffectsController$Operation·operation·=·defaultSpecialEffectsController$AnimationInfo.getOperation();382 ············this.startAnimation(defaultSpecialEffectsController$AnimationInfo.getOperation(),·defaultSpecialEffectsController$AnimationInfo.getSignal());
601 ············this.startAnimation(operation,·defaultSpecialEffectsController$AnimationInfo.getSignal(),·containsValue,·startTransitions.containsKey(operation)·&&·(boolean)startTransitions.get(operation)); 
602 ········}383 ········}
603 ········final·Iterator<Object>·iterator4·=·list4.iterator();384 ········final·Iterator<Object>·iterator4·=·list4.iterator();
604 ········while·(iterator4.hasNext())·{385 ········while·(iterator4.hasNext())·{
605 ············this.applyContainerChanges(iterator4.next());386 ············this.applyContainerChanges(iterator4.next());
606 ········}387 ········}
607 ········list4.clear();388 ········list4.clear();
608 ····}389 ····}
Offset 626, 17 lines modifiedOffset 407, 8 lines modified
626 ····void·removeCancellationSignal(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·cancellationSignal)·{407 ····void·removeCancellationSignal(final·SpecialEffectsController$Operation·specialEffectsController$Operation,·final·CancellationSignal·cancellationSignal)·{
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(cancellationSignal)·&&·set.isEmpty())·{409 ········if·(set·!=·null·&&·set.remove(cancellationSignal)·&&·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 }