102 lines
2.8 KiB
Smali
102 lines
2.8 KiB
Smali
|
|
.class final Landroidx/navigation/ui/NavigationUI$4;
|
||
|
|
.super Ljava/lang/Object;
|
||
|
|
.source "NavigationUI.java"
|
||
|
|
|
||
|
|
# interfaces
|
||
|
|
.implements Landroidx/navigation/NavController$OnDestinationChangedListener;
|
||
|
|
|
||
|
|
|
||
|
|
# annotations
|
||
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
|
value = Landroidx/navigation/ui/NavigationUI;->setupWithNavController(Lcom/google/android/material/navigation/NavigationView;Landroidx/navigation/NavController;)V
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
|
accessFlags = 0x8
|
||
|
|
name = null
|
||
|
|
.end annotation
|
||
|
|
|
||
|
|
|
||
|
|
# instance fields
|
||
|
|
.field final synthetic val$navController:Landroidx/navigation/NavController;
|
||
|
|
|
||
|
|
.field final synthetic val$weakReference:Ljava/lang/ref/WeakReference;
|
||
|
|
|
||
|
|
|
||
|
|
# direct methods
|
||
|
|
.method constructor <init>(Ljava/lang/ref/WeakReference;Landroidx/navigation/NavController;)V
|
||
|
|
.locals 0
|
||
|
|
|
||
|
|
.line 442
|
||
|
|
iput-object p1, p0, Landroidx/navigation/ui/NavigationUI$4;->val$weakReference:Ljava/lang/ref/WeakReference;
|
||
|
|
|
||
|
|
iput-object p2, p0, Landroidx/navigation/ui/NavigationUI$4;->val$navController:Landroidx/navigation/NavController;
|
||
|
|
|
||
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
|
||
|
|
# virtual methods
|
||
|
|
.method public onDestinationChanged(Landroidx/navigation/NavController;Landroidx/navigation/NavDestination;Landroid/os/Bundle;)V
|
||
|
|
.locals 3
|
||
|
|
|
||
|
|
.line 446
|
||
|
|
iget-object p1, p0, Landroidx/navigation/ui/NavigationUI$4;->val$weakReference:Ljava/lang/ref/WeakReference;
|
||
|
|
|
||
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
||
|
|
|
||
|
|
move-result-object p1
|
||
|
|
|
||
|
|
check-cast p1, Lcom/google/android/material/navigation/NavigationView;
|
||
|
|
|
||
|
|
if-nez p1, :cond_0
|
||
|
|
|
||
|
|
.line 448
|
||
|
|
iget-object p1, p0, Landroidx/navigation/ui/NavigationUI$4;->val$navController:Landroidx/navigation/NavController;
|
||
|
|
|
||
|
|
invoke-virtual {p1, p0}, Landroidx/navigation/NavController;->removeOnDestinationChangedListener(Landroidx/navigation/NavController$OnDestinationChangedListener;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
|
||
|
|
.line 451
|
||
|
|
:cond_0
|
||
|
|
invoke-virtual {p1}, Lcom/google/android/material/navigation/NavigationView;->getMenu()Landroid/view/Menu;
|
||
|
|
|
||
|
|
move-result-object p1
|
||
|
|
|
||
|
|
const/4 p3, 0x0
|
||
|
|
|
||
|
|
.line 452
|
||
|
|
invoke-interface {p1}, Landroid/view/Menu;->size()I
|
||
|
|
|
||
|
|
move-result v0
|
||
|
|
|
||
|
|
:goto_0
|
||
|
|
if-ge p3, v0, :cond_1
|
||
|
|
|
||
|
|
.line 453
|
||
|
|
invoke-interface {p1, p3}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;
|
||
|
|
|
||
|
|
move-result-object v1
|
||
|
|
|
||
|
|
.line 454
|
||
|
|
invoke-interface {v1}, Landroid/view/MenuItem;->getItemId()I
|
||
|
|
|
||
|
|
move-result v2
|
||
|
|
|
||
|
|
invoke-static {p2, v2}, Landroidx/navigation/ui/NavigationUI;->matchDestination(Landroidx/navigation/NavDestination;I)Z
|
||
|
|
|
||
|
|
move-result v2
|
||
|
|
|
||
|
|
invoke-interface {v1, v2}, Landroid/view/MenuItem;->setChecked(Z)Landroid/view/MenuItem;
|
||
|
|
|
||
|
|
add-int/lit8 p3, p3, 0x1
|
||
|
|
|
||
|
|
goto :goto_0
|
||
|
|
|
||
|
|
:cond_1
|
||
|
|
return-void
|
||
|
|
.end method
|