.class public final Landroidx/fragment/app/FragmentTransition; .super Ljava/lang/Object; .source "FragmentTransition.kt" # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nFragmentTransition.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FragmentTransition.kt\nandroidx/fragment/app/FragmentTransition\n+ 2 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 3 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,122:1\n515#2:123\n500#2,6:124\n125#3:130\n152#3,3:131\n125#3:134\n152#3,3:135\n125#3:138\n152#3,3:139\n1855#4,2:142\n*S KotlinDebug\n*F\n+ 1 FragmentTransition.kt\nandroidx/fragment/app/FragmentTransition\n*L\n50#1:123\n50#1:124,6\n53#1:130\n53#1:131,3\n98#1:134\n98#1:135,3\n99#1:138\n99#1:139,3\n113#1:142,2\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000F\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010 \n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0006\u0008\u00c0\u0002\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J<\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\u000c2\u0012\u0010\r\u001a\u000e\u0012\u0004\u0012\u00020\u000f\u0012\u0004\u0012\u00020\u00100\u000e2\u0006\u0010\u0011\u001a\u00020\u000cH\u0007J\n\u0010\u0012\u001a\u0004\u0018\u00010\u0004H\u0002J\u001e\u0010\u0013\u001a\u00020\u00072\u000c\u0010\u0014\u001a\u0008\u0012\u0004\u0012\u00020\u00100\u00152\u0006\u0010\u0016\u001a\u00020\u0017H\u0007J\u0008\u0010\u0018\u001a\u00020\u000cH\u0007J\"\u0010\u0019\u001a\u0004\u0018\u00010\u000f*\u000e\u0012\u0004\u0012\u00020\u000f\u0012\u0004\u0012\u00020\u000f0\u000e2\u0006\u0010\u001a\u001a\u00020\u000fH\u0007J,\u0010\u001b\u001a\u00020\u0007*\u000e\u0012\u0004\u0012\u00020\u000f\u0012\u0004\u0012\u00020\u000f0\u000e2\u0012\u0010\u001c\u001a\u000e\u0012\u0004\u0012\u00020\u000f\u0012\u0004\u0012\u00020\u00100\u000eH\u0007R\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001d" } d2 = { "Landroidx/fragment/app/FragmentTransition;", "", "()V", "PLATFORM_IMPL", "Landroidx/fragment/app/FragmentTransitionImpl;", "SUPPORT_IMPL", "callSharedElementStartEnd", "", "inFragment", "Landroidx/fragment/app/Fragment;", "outFragment", "isPop", "", "sharedElements", "Landroidx/collection/ArrayMap;", "", "Landroid/view/View;", "isStart", "resolveSupportImpl", "setViewVisibility", "views", "", "visibility", "", "supportsTransition", "findKeyForValue", "value", "retainValues", "namedViews", "fragment_release" } k = 0x1 mv = { 0x1, 0x8, 0x0 } xi = 0x30 .end annotation # static fields .field public static final INSTANCE:Landroidx/fragment/app/FragmentTransition; .field public static final PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; .field public static final SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; # direct methods .method static constructor ()V .locals 2 new-instance v0, Landroidx/fragment/app/FragmentTransition; invoke-direct {v0}, Landroidx/fragment/app/FragmentTransition;->()V sput-object v0, Landroidx/fragment/app/FragmentTransition;->INSTANCE:Landroidx/fragment/app/FragmentTransition; .line 28 new-instance v1, Landroidx/fragment/app/FragmentTransitionCompat21; invoke-direct {v1}, Landroidx/fragment/app/FragmentTransitionCompat21;->()V check-cast v1, Landroidx/fragment/app/FragmentTransitionImpl; sput-object v1, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; .line 31 invoke-direct {v0}, Landroidx/fragment/app/FragmentTransition;->resolveSupportImpl()Landroidx/fragment/app/FragmentTransitionImpl; move-result-object v0 sput-object v0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; return-void .end method .method private constructor ()V .locals 0 .line 25 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static final callSharedElementStartEnd(Landroidx/fragment/app/Fragment;Landroidx/fragment/app/Fragment;ZLandroidx/collection/ArrayMap;Z)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/fragment/app/Fragment;", "Landroidx/fragment/app/Fragment;", "Z", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;Z)V" } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation const-string v0, "inFragment" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "outFragment" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "sharedElements" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V if-eqz p2, :cond_0 .line 93 invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getEnterTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p0 goto :goto_0 .line 95 :cond_0 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getEnterTransitionCallback()Landroidx/core/app/SharedElementCallback; move-result-object p0 :goto_0 if-eqz p0, :cond_4 .line 98 check-cast p3, Ljava/util/Map; .line 134 new-instance p1, Ljava/util/ArrayList; invoke-interface {p3}, Ljava/util/Map;->size()I move-result p2 invoke-direct {p1, p2}, Ljava/util/ArrayList;->(I)V check-cast p1, Ljava/util/Collection; .line 135 invoke-interface {p3}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p2 invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p2 :goto_1 invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_1 invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map$Entry; .line 98 invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/View; .line 136 invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_1 .line 137 :cond_1 check-cast p1, Ljava/util/List; .line 138 new-instance p2, Ljava/util/ArrayList; invoke-interface {p3}, Ljava/util/Map;->size()I move-result v0 invoke-direct {p2, v0}, Ljava/util/ArrayList;->(I)V check-cast p2, Ljava/util/Collection; .line 139 invoke-interface {p3}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p3 invoke-interface {p3}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p3 :goto_2 invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_2 invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map$Entry; .line 99 invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; .line 140 invoke-interface {p2, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_2 .line 141 :cond_2 check-cast p2, Ljava/util/List; const/4 p3, 0x0 if-eqz p4, :cond_3 .line 101 invoke-virtual {p0, p2, p1, p3}, Landroidx/core/app/SharedElementCallback;->onSharedElementStart(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V goto :goto_3 .line 103 :cond_3 invoke-virtual {p0, p2, p1, p3}, Landroidx/core/app/SharedElementCallback;->onSharedElementEnd(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V :cond_4 :goto_3 return-void .end method .method public static final findKeyForValue(Landroidx/collection/ArrayMap;Ljava/lang/String;)Ljava/lang/String; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Ljava/lang/String;", ")", "Ljava/lang/String;" } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "value" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 50 check-cast p0, Ljava/util/Map; .line 123 new-instance v0, Ljava/util/LinkedHashMap; invoke-direct {v0}, Ljava/util/LinkedHashMap;->()V check-cast v0, Ljava/util/Map; .line 124 invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p0 invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p0 :cond_0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_1 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/util/Map$Entry; .line 52 invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v2 invoke-static {v2, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_0 .line 126 invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v2 invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v1 invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 .line 130 :cond_1 new-instance p0, Ljava/util/ArrayList; invoke-interface {v0}, Ljava/util/Map;->size()I move-result p1 invoke-direct {p0, p1}, Ljava/util/ArrayList;->(I)V check-cast p0, Ljava/util/Collection; .line 131 invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p1 invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_1 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_2 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map$Entry; .line 55 invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/String; .line 132 invoke-interface {p0, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_1 .line 133 :cond_2 check-cast p0, Ljava/util/List; .line 56 invoke-static {p0}, Lkotlin/collections/CollectionsKt;->firstOrNull(Ljava/util/List;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/String; return-object p0 .end method .method private final resolveSupportImpl()Landroidx/fragment/app/FragmentTransitionImpl; .locals 2 :try_start_0 const-string p0, "androidx.transition.FragmentTransitionSupport" .line 35 invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object p0 const-string v0, "null cannot be cast to non-null type java.lang.Class" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 new-array v1, v0, [Ljava/lang/Class; .line 38 invoke-virtual {p0, v1}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object p0 new-array v0, v0, [Ljava/lang/Object; invoke-virtual {p0, v0}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Landroidx/fragment/app/FragmentTransitionImpl; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const/4 p0, 0x0 :goto_0 return-object p0 .end method .method public static final retainValues(Landroidx/collection/ArrayMap;Landroidx/collection/ArrayMap;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/String;", ">;", "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Landroid/view/View;", ">;)V" } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "namedViews" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 65 invoke-virtual {p0}, Landroidx/collection/ArrayMap;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 const/4 v1, -0x1 if-ge v1, v0, :cond_1 .line 66 invoke-virtual {p0, v0}, Landroidx/collection/ArrayMap;->valueAt(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/String; .line 67 invoke-virtual {p1, v1}, Landroidx/collection/ArrayMap;->containsKey(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_0 .line 68 invoke-virtual {p0, v0}, Landroidx/collection/ArrayMap;->removeAt(I)Ljava/lang/Object; :cond_0 add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_1 return-void .end method .method public static final setViewVisibility(Ljava/util/List;I)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "+", "Landroid/view/View;", ">;I)V" } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation const-string v0, "views" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 113 check-cast p0, Ljava/lang/Iterable; .line 142 invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object p0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_0 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/view/View; .line 114 invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V goto :goto_0 :cond_0 return-void .end method .method public static final supportsTransition()Z .locals 1 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Landroidx/fragment/app/FragmentTransition;->PLATFORM_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-nez v0, :cond_1 sget-object v0, Landroidx/fragment/app/FragmentTransition;->SUPPORT_IMPL:Landroidx/fragment/app/FragmentTransitionImpl; if-eqz v0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 goto :goto_1 :cond_1 :goto_0 const/4 v0, 0x1 :goto_1 return v0 .end method