.class public Lcom/android/settings/device/MiuiMyDeviceSettings;
.super Lcom/android/settings/dashboard/DashboardFragment;
.source "MiuiMyDeviceSettings.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/android/settings/device/MiuiMyDeviceSettings$b;,
        Lcom/android/settings/device/MiuiMyDeviceSettings$a;
    }
.end annotation


# static fields
.field public static final pz:I

.field public static final qz:I


# instance fields
.field private Zy:Lcom/android/settings/device/MiuiMyDeviceSettings$b;

.field private _y:Lcom/android/settings/a/a;

.field private bz:Lcom/android/settings/device/MiuiMyDeviceSettings$a;

.field private iz:Z

.field private jz:Landroid/view/View;

.field private kz:Lcom/android/settings/device/b;

.field private lz:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Landroid/view/ViewGroup;",
            ">;"
        }
    .end annotation
.end field

.field private mHandler:Landroid/os/Handler;

.field private mHelper:Lcom/android/settings/device/i;

.field private mRootView:Landroid/view/View;

.field mz:Lcom/android/settings/device/MiuiVersionCard;

.field nz:Lcom/android/settings/device/MiuiDeviceNameCard;

.field oz:Lcom/android/settings/device/MiuiMemoryCard;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    invoke-static {}, Lcom/android/settings/utils/y;->YD()Z

    move-result v0

    const/4 v1, 0x2

    const/4 v2, 0x3

    if-nez v0, :cond_1

    sget-boolean v0, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    move v0, v1

    goto :goto_1

    :cond_1
    :goto_0
    move v0, v2

    :goto_1
    sput v0, Lcom/android/settings/device/MiuiMyDeviceSettings;->pz:I

    invoke-static {}, Lcom/android/settings/utils/y;->YD()Z

    move-result v0

    if-nez v0, :cond_3

    sget-boolean v0, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    if-eqz v0, :cond_2

    goto :goto_2

    :cond_2
    move v1, v2

    :cond_3
    :goto_2
    sput v1, Lcom/android/settings/device/MiuiMyDeviceSettings;->qz:I

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/android/settings/dashboard/DashboardFragment;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->lz:Ljava/util/List;

    new-instance v0, Lcom/android/settings/device/r;

    invoke-direct {v0, p0}, Lcom/android/settings/device/r;-><init>(Lcom/android/settings/device/MiuiMyDeviceSettings;)V

    iput-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mHandler:Landroid/os/Handler;

    return-void
.end method

.method private VW()V
    .locals 4

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mz:Lcom/android/settings/device/MiuiVersionCard;

    invoke-virtual {v0, p0}, Lcom/android/settings/device/MiuiVersionCard;->setFragment(Lcom/android/settings/dashboard/DashboardFragment;)V

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->nz:Lcom/android/settings/device/MiuiDeviceNameCard;

    invoke-virtual {v0, p0}, Lcom/android/settings/device/MiuiDeviceNameCard;->setFragment(Lcom/android/settings/dashboard/DashboardFragment;)V

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->oz:Lcom/android/settings/device/MiuiMemoryCard;

    invoke-virtual {v0, p0}, Lcom/android/settings/device/MiuiMemoryCard;->setFragment(Lcom/android/settings/dashboard/DashboardFragment;)V

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->lz:Ljava/util/List;

    iget-object v1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mz:Lcom/android/settings/device/MiuiVersionCard;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->lz:Ljava/util/List;

    iget-object v1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->nz:Lcom/android/settings/device/MiuiDeviceNameCard;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->lz:Ljava/util/List;

    iget-object v1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->oz:Lcom/android/settings/device/MiuiMemoryCard;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->lz:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    const/4 v2, 0x1

    new-array v2, v2, [Landroid/view/View;

    const/4 v3, 0x0

    aput-object v1, v2, v3

    invoke-static {v2}, Lmiui/animation/Folme;->useAt([Landroid/view/View;)Lmiui/animation/IFolme;

    move-result-object v2

    invoke-interface {v2}, Lmiui/animation/IFolme;->touch()Lmiui/animation/ITouchStyle;

    move-result-object v2

    new-array v3, v3, [Lmiui/animation/base/AnimConfig;

    invoke-interface {v2, v1, v3}, Lmiui/animation/ITouchStyle;->handleTouchOf(Landroid/view/View;[Lmiui/animation/base/AnimConfig;)V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mz:Lcom/android/settings/device/MiuiVersionCard;

    invoke-virtual {v0}, Lcom/android/settings/device/MiuiVersionCard;->Bl()V

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->nz:Lcom/android/settings/device/MiuiDeviceNameCard;

    invoke-virtual {p0}, Lcom/android/settings/device/MiuiDeviceNameCard;->Al()V

    return-void
.end method

.method static synthetic a(Lcom/android/settings/device/MiuiMyDeviceSettings;Lcom/android/settings/a/a;)Lcom/android/settings/a/a;
    .locals 0

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->_y:Lcom/android/settings/a/a;

    return-object p1
.end method

.method static synthetic a(Lcom/android/settings/device/MiuiMyDeviceSettings;)Lcom/android/settings/device/b;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->kz:Lcom/android/settings/device/b;

    return-object p0
.end method

.method static synthetic a(Lcom/android/settings/device/MiuiMyDeviceSettings;Lcom/android/settings/device/i;)Lcom/android/settings/device/i;
    .locals 0

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mHelper:Lcom/android/settings/device/i;

    return-object p1
.end method

.method static synthetic b(Lcom/android/settings/device/MiuiMyDeviceSettings;)Landroid/view/View;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->jz:Landroid/view/View;

    return-object p0
.end method

.method static synthetic c(Lcom/android/settings/device/MiuiMyDeviceSettings;)Lcom/android/settings/a/a;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->_y:Lcom/android/settings/a/a;

    return-object p0
.end method

.method static synthetic d(Lcom/android/settings/device/MiuiMyDeviceSettings;)Lcom/android/settings/device/i;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mHelper:Lcom/android/settings/device/i;

    return-object p0
.end method

.method static synthetic e(Lcom/android/settings/device/MiuiMyDeviceSettings;)Lcom/android/settings/device/MiuiMyDeviceSettings$b;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->Zy:Lcom/android/settings/device/MiuiMyDeviceSettings$b;

    return-object p0
.end method

.method static synthetic f(Lcom/android/settings/device/MiuiMyDeviceSettings;)Landroid/os/Handler;
    .locals 0

    invoke-direct {p0}, Lcom/android/settings/device/MiuiMyDeviceSettings;->getHandler()Landroid/os/Handler;

    move-result-object p0

    return-object p0
.end method

.method private getHandler()Landroid/os/Handler;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mHandler:Landroid/os/Handler;

    return-object p0
.end method


# virtual methods
.method protected Cf()Ljava/lang/String;
    .locals 0

    const-class p0, Lcom/android/settings/device/MiuiMyDeviceSettings;

    invoke-virtual {p0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method protected createPreferenceControllers(Landroid/content/Context;)Ljava/util/List;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List<",
            "Lcom/android/settingslib/d/a;",
            ">;"
        }
    .end annotation

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Lcom/android/settings/device/controller/q;

    invoke-direct {v1, p1}, Lcom/android/settings/device/controller/q;-><init>(Landroid/content/Context;)V

    sget-boolean v2, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    invoke-virtual {v1, v2}, Lcom/android/settings/device/controller/a;->setIsAvailable(Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/android/settings/device/controller/k;

    invoke-direct {v1, p1}, Lcom/android/settings/device/controller/k;-><init>(Landroid/content/Context;)V

    sget-boolean v2, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    invoke-virtual {v1, v2}, Lcom/android/settings/device/controller/a;->setIsAvailable(Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/android/settings/device/controller/g;

    invoke-direct {v1, p1}, Lcom/android/settings/device/controller/g;-><init>(Landroid/content/Context;)V

    sget-boolean v2, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    invoke-virtual {v1, v2}, Lcom/android/settings/device/controller/a;->setIsAvailable(Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/android/settings/device/controller/b;

    invoke-direct {v1, p1, p0}, Lcom/android/settings/device/controller/b;-><init>(Landroid/content/Context;Lcom/android/settings/device/MiuiMyDeviceSettings;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/android/settings/device/controller/c;

    invoke-direct {v1, p1}, Lcom/android/settings/device/controller/c;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/android/settings/device/controller/n;

    invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

    move-result-object p0

    invoke-direct {v1, p1, p0}, Lcom/android/settings/device/controller/n;-><init>(Landroid/content/Context;Landroid/app/Activity;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance p0, Lcom/android/settings/device/controller/o;

    invoke-direct {p0, p1}, Lcom/android/settings/device/controller/o;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance p0, Lcom/android/settings/device/controller/m;

    invoke-direct {p0, p1}, Lcom/android/settings/device/controller/m;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance p0, Lcom/android/settings/device/controller/p;

    invoke-direct {p0, p1}, Lcom/android/settings/device/controller/p;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance p0, Lcom/android/settings/device/controller/l;

    invoke-direct {p0, p1}, Lcom/android/settings/device/controller/l;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance p0, Lcom/android/settings/device/controller/e;

    invoke-direct {p0, p1}, Lcom/android/settings/device/controller/e;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    new-instance p0, Lcom/android/settings/device/controller/i;

    invoke-direct {p0, p1}, Lcom/android/settings/device/controller/i;-><init>(Landroid/content/Context;)V

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-object v0
.end method

.method public eg()Lcom/android/settings/device/i;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mHelper:Lcom/android/settings/device/i;

    return-object p0
.end method

.method public getName()Ljava/lang/String;
    .locals 0

    const-class p0, Lcom/android/settings/device/MiuiMyDeviceSettings;

    invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public getPresenter()Lcom/android/settings/device/b;
    .locals 0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->kz:Lcom/android/settings/device/b;

    return-object p0
.end method

.method protected he()I
    .locals 0

    const p0, 0x7f1500e9

    return p0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 0

    invoke-super {p0, p1}, Lcom/android/settings/dashboard/DashboardFragment;->onCreate(Landroid/os/Bundle;)V

    invoke-static {}, Landroid/os/UserHandle;->myUserId()I

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    iput-boolean p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->iz:Z

    iget-boolean p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->iz:Z

    invoke-virtual {p0, p1}, Landroid/app/Fragment;->setHasOptionsMenu(Z)V

    invoke-static {}, Lcom/android/settings/utils/y;->fE()Z

    move-result p1

    if-eqz p1, :cond_1

    invoke-virtual {p0}, Landroidx/preference/q;->getPreferenceScreen()Landroidx/preference/PreferenceScreen;

    move-result-object p0

    const p1, 0x7f121034

    invoke-virtual {p0, p1}, Landroidx/preference/Preference;->setTitle(I)V

    goto :goto_1

    :cond_1
    invoke-virtual {p0}, Landroidx/preference/q;->getPreferenceScreen()Landroidx/preference/PreferenceScreen;

    move-result-object p0

    const p1, 0x7f120037

    invoke-virtual {p0, p1}, Landroidx/preference/Preference;->setTitle(I)V

    :goto_1
    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 3

    if-eqz p2, :cond_0

    sget-boolean v0, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

    move-result-object v0

    invoke-static {v0, p2}, Lcom/android/settings/Gg;->a(Landroid/app/Activity;Landroid/view/View;)V

    :cond_0
    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    if-nez v0, :cond_2

    const v0, 0x7f0d01b8

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    const v2, 0x7f0a053b

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-super {p0, p1, p2, p3}, Lcom/android/settings/SettingsPreferenceFragment;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    invoke-virtual {p0}, Landroidx/preference/q;->getListView()Landroidx/recyclerview/widget/RecyclerView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    check-cast p1, Landroid/view/View;

    instance-of p2, p1, Lmiuix/springback/view/SpringBackLayout;

    if-eqz p2, :cond_1

    invoke-virtual {p1, v1}, Landroid/view/View;->setEnabled(Z)V

    :cond_1
    iget-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    const p2, 0x7f0a0201

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->jz:Landroid/view/View;

    iget-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->jz:Landroid/view/View;

    const/16 p2, 0x8

    invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V

    iget-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    const p2, 0x7f0a042b

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/android/settings/device/MiuiVersionCard;

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mz:Lcom/android/settings/device/MiuiVersionCard;

    iget-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    const p2, 0x7f0a01fe

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/android/settings/device/MiuiDeviceNameCard;

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->nz:Lcom/android/settings/device/MiuiDeviceNameCard;

    iget-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    const p2, 0x7f0a01fc

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/android/settings/device/MiuiMemoryCard;

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->oz:Lcom/android/settings/device/MiuiMemoryCard;

    sget-boolean p1, Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z

    if-nez p1, :cond_2

    new-instance p1, Lcom/android/settings/device/b;

    invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

    move-result-object p2

    invoke-direct {p1, p2}, Lcom/android/settings/device/b;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->kz:Lcom/android/settings/device/b;

    new-instance p1, Lcom/android/settings/device/MiuiMyDeviceSettings$b;

    invoke-direct {p1, p0}, Lcom/android/settings/device/MiuiMyDeviceSettings$b;-><init>(Lcom/android/settings/device/MiuiMyDeviceSettings;)V

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->Zy:Lcom/android/settings/device/MiuiMyDeviceSettings$b;

    new-instance p1, Lcom/android/settings/device/MiuiMyDeviceSettings$a;

    const/4 p2, 0x0

    invoke-direct {p1, p0, p2}, Lcom/android/settings/device/MiuiMyDeviceSettings$a;-><init>(Lcom/android/settings/device/MiuiMyDeviceSettings;Lcom/android/settings/device/r;)V

    iput-object p1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->bz:Lcom/android/settings/device/MiuiMyDeviceSettings$a;

    invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

    move-result-object p1

    iget-object p2, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->bz:Lcom/android/settings/device/MiuiMyDeviceSettings$a;

    invoke-static {p1, p2}, Lcom/android/settings/device/v;->b(Landroid/content/Context;Landroid/content/ServiceConnection;)Z

    :cond_2
    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->mRootView:Landroid/view/View;

    return-object p0
.end method

.method public onDestroy()V
    .locals 3

    invoke-super {p0}, Lcom/android/settingslib/core/lifecycle/f;->onDestroy()V

    iget-object v0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->_y:Lcom/android/settings/a/a;

    if-eqz v0, :cond_1

    :try_start_0
    iget-object v1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->Zy:Lcom/android/settings/device/MiuiMyDeviceSettings$b;

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->Zy:Lcom/android/settings/device/MiuiMyDeviceSettings$b;

    invoke-interface {v0, v1}, Lcom/android/settings/a/a;->a(Lcom/android/settings/a/c;)V

    iput-object v2, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->Zy:Lcom/android/settings/device/MiuiMyDeviceSettings$b;

    :cond_0
    iput-object v2, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->_y:Lcom/android/settings/a/a;
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    :cond_1
    :goto_0
    invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

    move-result-object v0

    iget-object p0, p0, Lcom/android/settings/device/MiuiMyDeviceSettings;->bz:Lcom/android/settings/device/MiuiMyDeviceSettings$a;

    if-eqz p0, :cond_2

    if-eqz v0, :cond_2

    invoke-virtual {v0, p0}, Landroid/content/ContextWrapper;->unbindService(Landroid/content/ServiceConnection;)V

    :cond_2
    return-void
.end method

.method public onPause()V
    .locals 0

    invoke-super {p0}, Lcom/android/settings/SettingsPreferenceFragment;->onPause()V

    const-string p0, "provision_about_page_v85x"

    invoke-static {p0}, Lcom/android/settingslib/o/b;->trackPageEnd(Ljava/lang/String;)V

    return-void
.end method

.method public onResume()V
    .locals 0

    invoke-super {p0}, Lcom/android/settings/dashboard/DashboardFragment;->onResume()V

    invoke-direct {p0}, Lcom/android/settings/device/MiuiMyDeviceSettings;->VW()V

    const-string p0, "provision_about_page_v85x"

    invoke-static {p0}, Lcom/android/settingslib/o/b;->trackPageStart(Ljava/lang/String;)V

    return-void
.end method
