.class public Lio/flutter/embedding/android/FlutterFragmentActivity; .super Landroidx/fragment/app/FragmentActivity; .source "FlutterFragmentActivity.java" # interfaces .implements Lio/flutter/embedding/android/FlutterEngineProvider; .implements Lio/flutter/embedding/android/FlutterEngineConfigurator; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineIntentBuilder;, Lio/flutter/embedding/android/FlutterFragmentActivity$CachedEngineIntentBuilder;, Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineInGroupIntentBuilder; } .end annotation # static fields .field public static final FRAGMENT_CONTAINER_ID:I .field private static final TAG:Ljava/lang/String; = "FlutterFragmentActivity" .field private static final TAG_FLUTTER_FRAGMENT:Ljava/lang/String; = "flutter_fragment" # instance fields .field private flutterFragment:Lio/flutter/embedding/android/FlutterFragment; # direct methods .method static constructor ()V .locals 1 const v0, 0x245a3c5c .line 71 invoke-static {v0}, Lio/flutter/util/ViewUtils;->generateViewId(I)I move-result v0 sput v0, Lio/flutter/embedding/android/FlutterFragmentActivity;->FRAGMENT_CONTAINER_ID:I return-void .end method .method public constructor ()V .locals 0 .line 63 invoke-direct {p0}, Landroidx/fragment/app/FragmentActivity;->()V return-void .end method .method private configureStatusBarForFullscreenFlutterExperience()V .locals 1 .line 605 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getWindow()Landroid/view/Window; move-result-object p0 const/high16 v0, -0x80000000 .line 606 invoke-virtual {p0, v0}, Landroid/view/Window;->addFlags(I)V const/high16 v0, 0x40000000 # 2.0f .line 607 invoke-virtual {p0, v0}, Landroid/view/Window;->setStatusBarColor(I)V .line 608 invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View; move-result-object p0 const/16 v0, 0x500 invoke-virtual {p0, v0}, Landroid/view/View;->setSystemUiVisibility(I)V return-void .end method .method private configureWindowForTransparency()V .locals 2 .line 447 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getBackgroundMode()Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; move-result-object v0 .line 448 sget-object v1, Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode;->transparent:Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; if-ne v0, v1, :cond_0 .line 449 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getWindow()Landroid/view/Window; move-result-object p0 new-instance v0, Landroid/graphics/drawable/ColorDrawable; const/4 v1, 0x0 invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;->(I)V invoke-virtual {p0, v0}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V :cond_0 return-void .end method .method public static createDefaultIntent(Landroid/content/Context;)Landroid/content/Intent; .locals 1 .line 79 invoke-static {}, Lio/flutter/embedding/android/FlutterFragmentActivity;->withNewEngine()Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineIntentBuilder; move-result-object v0 invoke-virtual {v0, p0}, Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineIntentBuilder;->build(Landroid/content/Context;)Landroid/content/Intent; move-result-object p0 return-object p0 .end method .method private createFragmentContainer()Landroid/view/View; .locals 2 .line 463 invoke-virtual {p0, p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->provideRootLayout(Landroid/content/Context;)Landroid/widget/FrameLayout; move-result-object p0 sget v0, Lio/flutter/embedding/android/FlutterFragmentActivity;->FRAGMENT_CONTAINER_ID:I .line 464 invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->setId(I)V .line 465 new-instance v0, Landroid/view/ViewGroup$LayoutParams; const/4 v1, -0x1 invoke-direct {v0, v1, v1}, Landroid/view/ViewGroup$LayoutParams;->(II)V invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V return-object p0 .end method .method private ensureFlutterFragmentCreated()V .locals 3 iget-object v0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; if-nez v0, :cond_0 .line 495 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->retrieveExistingFlutterFragmentIfPossible()Lio/flutter/embedding/android/FlutterFragment; move-result-object v0 iput-object v0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; :cond_0 iget-object v0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; if-nez v0, :cond_1 .line 500 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->createFlutterFragment()Lio/flutter/embedding/android/FlutterFragment; move-result-object v0 iput-object v0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 501 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; move-result-object v0 .line 503 invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction; move-result-object v0 sget v1, Lio/flutter/embedding/android/FlutterFragmentActivity;->FRAGMENT_CONTAINER_ID:I iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; const-string v2, "flutter_fragment" .line 504 invoke-virtual {v0, v1, p0, v2}, Landroidx/fragment/app/FragmentTransaction;->add(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction; move-result-object p0 .line 505 invoke-virtual {p0}, Landroidx/fragment/app/FragmentTransaction;->commit()I :cond_1 return-void .end method .method private isDebuggable()Z .locals 0 .line 940 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getApplicationInfo()Landroid/content/pm/ApplicationInfo; move-result-object p0 iget p0, p0, Landroid/content/pm/ApplicationInfo;->flags:I and-int/lit8 p0, p0, 0x2 if-eqz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method private switchLaunchThemeForNormalTheme()V .locals 4 const-string v0, "FlutterFragmentActivity" .line 422 :try_start_0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getMetaData()Landroid/os/Bundle; move-result-object v1 if-eqz v1, :cond_0 const-string v2, "io.flutter.embedding.android.NormalTheme" const/4 v3, -0x1 .line 424 invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I move-result v1 if-eq v1, v3, :cond_1 .line 426 invoke-virtual {p0, v1}, Lio/flutter/embedding/android/FlutterFragmentActivity;->setTheme(I)V goto :goto_0 :cond_0 const-string p0, "Using the launch theme as normal theme." .line 429 invoke-static {v0, p0}, Lio/flutter/Log;->v(Ljava/lang/String;Ljava/lang/String;)V :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const-string p0, "Could not read meta-data for FlutterFragmentActivity. Using the launch theme as normal theme." .line 432 invoke-static {v0, p0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V :cond_1 :goto_0 return-void .end method .method public static withCachedEngine(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragmentActivity$CachedEngineIntentBuilder; .locals 2 .line 190 new-instance v0, Lio/flutter/embedding/android/FlutterFragmentActivity$CachedEngineIntentBuilder; const-class v1, Lio/flutter/embedding/android/FlutterFragmentActivity; invoke-direct {v0, v1, p0}, Lio/flutter/embedding/android/FlutterFragmentActivity$CachedEngineIntentBuilder;->(Ljava/lang/Class;Ljava/lang/String;)V return-object v0 .end method .method public static withNewEngine()Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineIntentBuilder; .locals 2 .line 90 new-instance v0, Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineIntentBuilder; const-class v1, Lio/flutter/embedding/android/FlutterFragmentActivity; invoke-direct {v0, v1}, Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineIntentBuilder;->(Ljava/lang/Class;)V return-object v0 .end method .method public static withNewEngineInGroup(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineInGroupIntentBuilder; .locals 2 .line 277 new-instance v0, Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineInGroupIntentBuilder; const-class v1, Lio/flutter/embedding/android/FlutterFragmentActivity; invoke-direct {v0, v1, p0}, Lio/flutter/embedding/android/FlutterFragmentActivity$NewEngineInGroupIntentBuilder;->(Ljava/lang/Class;Ljava/lang/String;)V return-object v0 .end method # virtual methods .method public cleanUpFlutterEngine(Lio/flutter/embedding/engine/FlutterEngine;)V .locals 0 return-void .end method .method public configureFlutterEngine(Lio/flutter/embedding/engine/FlutterEngine;)V .locals 0 iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; if-eqz p0, :cond_0 .line 736 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment;->isFlutterEngineInjected()Z move-result p0 if-eqz p0, :cond_0 return-void .line 743 :cond_0 invoke-static {p1}, Lio/flutter/embedding/engine/plugins/util/GeneratedPluginRegister;->registerGeneratedPlugins(Lio/flutter/embedding/engine/FlutterEngine;)V return-void .end method .method protected createFlutterFragment()Lio/flutter/embedding/android/FlutterFragment; .locals 9 .line 517 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getBackgroundMode()Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; move-result-object v0 .line 518 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getRenderMode()Lio/flutter/embedding/android/RenderMode; move-result-object v1 .line 520 sget-object v2, Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode;->opaque:Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; if-ne v0, v2, :cond_0 .line 521 sget-object v2, Lio/flutter/embedding/android/TransparencyMode;->opaque:Lio/flutter/embedding/android/TransparencyMode; goto :goto_0 .line 522 :cond_0 sget-object v2, Lio/flutter/embedding/android/TransparencyMode;->transparent:Lio/flutter/embedding/android/TransparencyMode; .line 523 :goto_0 sget-object v3, Lio/flutter/embedding/android/RenderMode;->surface:Lio/flutter/embedding/android/RenderMode; if-ne v1, v3, :cond_1 const/4 v3, 0x1 goto :goto_1 :cond_1 const/4 v3, 0x0 .line 525 :goto_1 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getCachedEngineId()Ljava/lang/String; move-result-object v4 const-string v5, "\nWill attach FlutterEngine to Activity: " const-string v6, "\nBackground transparency mode: " const-string v7, "FlutterFragmentActivity" if-eqz v4, :cond_2 .line 526 new-instance v4, Ljava/lang/StringBuilder; const-string v8, "Creating FlutterFragment with cached engine:\nCached engine ID: " invoke-direct {v4, v8}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V .line 530 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getCachedEngineId()Ljava/lang/String; move-result-object v8 invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v4 const-string v8, "\nWill destroy engine when Activity is destroyed: " invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v4 .line 533 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldDestroyEngineWithHost()Z move-result v8 invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v4 invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v4 invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 539 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldAttachEngineToActivity()Z move-result v4 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 .line 526 invoke-static {v7, v0}, Lio/flutter/Log;->v(Ljava/lang/String;Ljava/lang/String;)V .line 541 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getCachedEngineId()Ljava/lang/String; move-result-object v0 invoke-static {v0}, Lio/flutter/embedding/android/FlutterFragment;->withCachedEngine(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object v0 .line 542 invoke-virtual {v0, v1}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->renderMode(Lio/flutter/embedding/android/RenderMode;)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object v0 .line 543 invoke-virtual {v0, v2}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->transparencyMode(Lio/flutter/embedding/android/TransparencyMode;)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object v0 .line 544 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldHandleDeeplinking()Z move-result v1 invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object v1 invoke-virtual {v0, v1}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->handleDeeplinking(Ljava/lang/Boolean;)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object v0 .line 545 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldAttachEngineToActivity()Z move-result v1 invoke-virtual {v0, v1}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->shouldAttachEngineToActivity(Z)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object v0 .line 546 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldDestroyEngineWithHost()Z move-result p0 invoke-virtual {v0, p0}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->destroyEngineWithFragment(Z)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object p0 .line 547 invoke-virtual {p0, v3}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->shouldDelayFirstAndroidViewDraw(Z)Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder; move-result-object p0 .line 548 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment$CachedEngineFragmentBuilder;->build()Lio/flutter/embedding/android/FlutterFragment; move-result-object p0 return-object p0 .line 550 :cond_2 new-instance v4, Ljava/lang/StringBuilder; const-string v8, "Creating FlutterFragment with new engine:\nCached engine group ID: " invoke-direct {v4, v8}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V .line 554 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getCachedEngineGroupId()Ljava/lang/String; move-result-object v8 invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v4 invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v4 invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v4, "\nDart entrypoint: " invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 560 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointFunctionName()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v4, "\nDart entrypoint library uri: " invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 563 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointLibraryUri()Ljava/lang/String; move-result-object v4 if-eqz v4, :cond_3 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointLibraryUri()Ljava/lang/String; move-result-object v4 goto :goto_2 :cond_3 const-string v4, "\"\"" :goto_2 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v4, "\nInitial route: " invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 566 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getInitialRoute()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v4, "\nApp bundle path: " invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 569 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getAppBundlePath()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 572 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldAttachEngineToActivity()Z move-result v4 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 .line 550 invoke-static {v7, v0}, Lio/flutter/Log;->v(Ljava/lang/String;Ljava/lang/String;)V .line 574 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getCachedEngineGroupId()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_4 .line 576 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getCachedEngineGroupId()Ljava/lang/String; move-result-object v0 invoke-static {v0}, Lio/flutter/embedding/android/FlutterFragment;->withNewEngineInGroup(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object v0 .line 577 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointFunctionName()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->dartEntrypoint(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object v0 .line 578 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getInitialRoute()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->initialRoute(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object v0 .line 579 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldHandleDeeplinking()Z move-result v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->handleDeeplinking(Z)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object v0 .line 580 invoke-virtual {v0, v1}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->renderMode(Lio/flutter/embedding/android/RenderMode;)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object v0 .line 581 invoke-virtual {v0, v2}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->transparencyMode(Lio/flutter/embedding/android/TransparencyMode;)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object v0 .line 582 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldAttachEngineToActivity()Z move-result p0 invoke-virtual {v0, p0}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->shouldAttachEngineToActivity(Z)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object p0 .line 583 invoke-virtual {p0, v3}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->shouldDelayFirstAndroidViewDraw(Z)Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder; move-result-object p0 .line 584 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment$NewEngineInGroupFragmentBuilder;->build()Lio/flutter/embedding/android/FlutterFragment; move-result-object p0 return-object p0 .line 587 :cond_4 invoke-static {}, Lio/flutter/embedding/android/FlutterFragment;->withNewEngine()Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 588 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointFunctionName()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->dartEntrypoint(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 589 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointLibraryUri()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->dartLibraryUri(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 590 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getDartEntrypointArgs()Ljava/util/List; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->dartEntrypointArgs(Ljava/util/List;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 591 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getInitialRoute()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->initialRoute(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 592 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getAppBundlePath()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->appBundlePath(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 593 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object v4 invoke-static {v4}, Lio/flutter/embedding/engine/FlutterShellArgs;->fromIntent(Landroid/content/Intent;)Lio/flutter/embedding/engine/FlutterShellArgs; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->flutterShellArgs(Lio/flutter/embedding/engine/FlutterShellArgs;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 594 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldHandleDeeplinking()Z move-result v4 invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object v4 invoke-virtual {v0, v4}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->handleDeeplinking(Ljava/lang/Boolean;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 595 invoke-virtual {v0, v1}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->renderMode(Lio/flutter/embedding/android/RenderMode;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 596 invoke-virtual {v0, v2}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->transparencyMode(Lio/flutter/embedding/android/TransparencyMode;)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object v0 .line 597 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->shouldAttachEngineToActivity()Z move-result p0 invoke-virtual {v0, p0}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->shouldAttachEngineToActivity(Z)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object p0 .line 598 invoke-virtual {p0, v3}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->shouldDelayFirstAndroidViewDraw(Z)Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder; move-result-object p0 .line 599 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment$NewEngineFragmentBuilder;->build()Lio/flutter/embedding/android/FlutterFragment; move-result-object p0 return-object p0 .end method .method protected getAppBundlePath()Ljava/lang/String; .locals 2 .line 776 invoke-direct {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->isDebuggable()Z move-result v0 if-eqz v0, :cond_0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object v0 invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String; move-result-object v0 const-string v1, "android.intent.action.RUN" invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 .line 777 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 invoke-virtual {p0}, Landroid/content/Intent;->getDataString()Ljava/lang/String; move-result-object p0 if-eqz p0, :cond_0 return-object p0 :cond_0 const/4 p0, 0x0 return-object p0 .end method .method protected getBackgroundMode()Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; .locals 2 .line 914 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object v0 const-string v1, "background_mode" invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_0 .line 915 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 invoke-virtual {p0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {p0}, Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode;->valueOf(Ljava/lang/String;)Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; move-result-object p0 return-object p0 .line 917 :cond_0 sget-object p0, Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode;->opaque:Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; return-object p0 .end method .method protected getCachedEngineGroupId()Ljava/lang/String; .locals 1 .line 905 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 const-string v0, "cached_engine_group_id" invoke-virtual {p0, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method protected getCachedEngineId()Ljava/lang/String; .locals 1 .line 900 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 const-string v0, "cached_engine_id" invoke-virtual {p0, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public getDartEntrypointArgs()Ljava/util/List; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation .line 824 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 const-string v0, "dart_entrypoint_args" invoke-virtual {p0, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable; move-result-object p0 check-cast p0, Ljava/util/List; return-object p0 .end method .method public getDartEntrypointFunctionName()Ljava/lang/String; .locals 2 const-string v0, "main" .line 806 :try_start_0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getMetaData()Landroid/os/Bundle; move-result-object p0 if-eqz p0, :cond_0 const-string v1, "io.flutter.Entrypoint" .line 808 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 if-eqz p0, :cond_1 move-object v0, p0 :catch_0 :cond_1 return-object v0 .end method .method public getDartEntrypointLibraryUri()Ljava/lang/String; .locals 2 const/4 v0, 0x0 .line 844 :try_start_0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getMetaData()Landroid/os/Bundle; move-result-object p0 if-eqz p0, :cond_0 const-string v1, "io.flutter.EntrypointUri" .line 846 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_0 return-object v0 .end method .method protected getFlutterEngine()Lio/flutter/embedding/engine/FlutterEngine; .locals 0 iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 659 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment;->getFlutterEngine()Lio/flutter/embedding/engine/FlutterEngine; move-result-object p0 return-object p0 .end method .method protected getInitialRoute()Ljava/lang/String; .locals 2 .line 878 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object v0 const-string v1, "route" invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_0 .line 879 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 invoke-virtual {p0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 return-object p0 :cond_0 const/4 v0, 0x0 .line 883 :try_start_0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getMetaData()Landroid/os/Bundle; move-result-object p0 if-eqz p0, :cond_1 const-string v1, "io.flutter.InitialRoute" .line 885 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_1 return-object v0 .end method .method protected getMetaData()Landroid/os/Bundle; .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Landroid/content/pm/PackageManager$NameNotFoundException; } .end annotation .line 790 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getComponentName()Landroid/content/ComponentName; move-result-object p0 const/16 v1, 0x80 invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getActivityInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo; move-result-object p0 .line 791 iget-object p0, p0, Landroid/content/pm/ActivityInfo;->metaData:Landroid/os/Bundle; return-object p0 .end method .method protected getRenderMode()Lio/flutter/embedding/android/RenderMode; .locals 1 .line 930 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getBackgroundMode()Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; move-result-object p0 .line 931 sget-object v0, Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode;->opaque:Lio/flutter/embedding/android/FlutterActivityLaunchConfigs$BackgroundMode; if-ne p0, v0, :cond_0 sget-object p0, Lio/flutter/embedding/android/RenderMode;->surface:Lio/flutter/embedding/android/RenderMode; goto :goto_0 :cond_0 sget-object p0, Lio/flutter/embedding/android/RenderMode;->texture:Lio/flutter/embedding/android/RenderMode; :goto_0 return-object p0 .end method .method protected onActivityResult(IILandroid/content/Intent;)V .locals 0 .line 652 invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onActivityResult(IILandroid/content/Intent;)V iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 653 invoke-virtual {p0, p1, p2, p3}, Lio/flutter/embedding/android/FlutterFragment;->onActivityResult(IILandroid/content/Intent;)V return-void .end method .method public onBackPressed()V .locals 0 iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 628 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment;->onBackPressed()V return-void .end method .method protected onCreate(Landroid/os/Bundle;)V .locals 1 .line 377 invoke-direct {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->switchLaunchThemeForNormalTheme()V .line 381 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->retrieveExistingFlutterFragmentIfPossible()Lio/flutter/embedding/android/FlutterFragment; move-result-object v0 iput-object v0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 383 invoke-super {p0, p1}, Landroidx/fragment/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V .line 385 invoke-direct {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->configureWindowForTransparency()V .line 386 invoke-direct {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->createFragmentContainer()Landroid/view/View; move-result-object p1 invoke-virtual {p0, p1}, Lio/flutter/embedding/android/FlutterFragmentActivity;->setContentView(Landroid/view/View;)V .line 387 invoke-direct {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->configureStatusBarForFullscreenFlutterExperience()V .line 388 invoke-direct {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->ensureFlutterFragmentCreated()V return-void .end method .method protected onNewIntent(Landroid/content/Intent;)V .locals 1 iget-object v0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 621 invoke-virtual {v0, p1}, Lio/flutter/embedding/android/FlutterFragment;->onNewIntent(Landroid/content/Intent;)V .line 622 invoke-super {p0, p1}, Landroidx/fragment/app/FragmentActivity;->onNewIntent(Landroid/content/Intent;)V return-void .end method .method public onPostResume()V .locals 0 .line 614 invoke-super {p0}, Landroidx/fragment/app/FragmentActivity;->onPostResume()V iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 615 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment;->onPostResume()V return-void .end method .method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V .locals 0 .line 634 invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 635 invoke-virtual {p0, p1, p2, p3}, Lio/flutter/embedding/android/FlutterFragment;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V return-void .end method .method public onTrimMemory(I)V .locals 0 .line 646 invoke-super {p0, p1}, Landroidx/fragment/app/FragmentActivity;->onTrimMemory(I)V iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 647 invoke-virtual {p0, p1}, Lio/flutter/embedding/android/FlutterFragment;->onTrimMemory(I)V return-void .end method .method public onUserLeaveHint()V .locals 0 iget-object p0, p0, Lio/flutter/embedding/android/FlutterFragmentActivity;->flutterFragment:Lio/flutter/embedding/android/FlutterFragment; .line 641 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragment;->onUserLeaveHint()V return-void .end method .method public provideFlutterEngine(Landroid/content/Context;)Lio/flutter/embedding/engine/FlutterEngine; .locals 0 const/4 p0, 0x0 return-object p0 .end method .method protected provideRootLayout(Landroid/content/Context;)Landroid/widget/FrameLayout; .locals 0 .line 946 new-instance p0, Landroid/widget/FrameLayout; invoke-direct {p0, p1}, Landroid/widget/FrameLayout;->(Landroid/content/Context;)V return-object p0 .end method .method retrieveExistingFlutterFragmentIfPossible()Lio/flutter/embedding/android/FlutterFragment; .locals 1 .line 480 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager; move-result-object p0 const-string v0, "flutter_fragment" .line 481 invoke-virtual {p0, v0}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment; move-result-object p0 check-cast p0, Lio/flutter/embedding/android/FlutterFragment; return-object p0 .end method .method protected shouldAttachEngineToActivity()Z .locals 0 const/4 p0, 0x1 return p0 .end method .method public shouldDestroyEngineWithHost()Z .locals 2 .line 672 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getIntent()Landroid/content/Intent; move-result-object p0 const-string v0, "destroy_engine_with_activity" const/4 v1, 0x0 invoke-virtual {p0, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z move-result p0 return p0 .end method .method protected shouldHandleDeeplinking()Z .locals 2 const/4 v0, 0x0 .line 705 :try_start_0 invoke-virtual {p0}, Lio/flutter/embedding/android/FlutterFragmentActivity;->getMetaData()Landroid/os/Bundle; move-result-object p0 if-eqz p0, :cond_0 const-string v1, "flutter_deeplinking_enabled" .line 707 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z move-result v0 :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_0 return v0 .end method