Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method private createDialogAdv()Lcom/htc/widget/HtcAlertDialog;
- .locals 11
- const/4 v10, 0x5
- const/4 v9, 0x1
- const v8, 0x1040520
- const v7, 0x104051f
- const v6, 0x108073b
- const-string v0, "ADVANCED POWER MENU"
- const-string v1, "Begin create Dialog"
- invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
- new-array v0, v10, [Lcom/android/internal/policy/impl/GlobalActions$Action;
- const/4 v4, 0x0
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$23;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$23;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- const/4 v4, 0x1
- const v8, 0x1040523
- const v7, 0x1040522
- const v6, 0x1080735
- new-instance v4, Lcom/android/internal/policy/impl/GlobalActions$20;
- invoke-direct {v4, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$20;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v4, v0, v9
- const/4 v4, 0x2
- const v8, 0x1040529
- const v7, 0x1040528
- const v6, 0x108073c
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$22;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$22;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- const/4 v4, 0x3
- const v8, 0x1040525
- const v7, 0x1040524
- const v6, 0x108073a
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$21;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$21;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- const/4 v4, 0x4
- const v8, 0x1040527
- const v7, 0x1040526
- const v6, 0x1080732
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$24;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$24;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- invoke-static {v0}, Lcom/google/android/collect/Lists;->newArrayList([Ljava/lang/Object;)Ljava/util/ArrayList;
- move-result-object v0
- iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
- new-instance v4, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
- const/4 v5, 0x0
- invoke-direct {v4, p0, v5}, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;-><init>(Lcom/android/internal/policy/impl/GlobalActions;Lcom/android/internal/policy/impl/GlobalActions$1;)V
- iput-object v4, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
- invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->isSense2Mode()Z
- move-result v4
- if-eqz v4, :cond_2
- const v1, 0x20c00d1
- :goto_0
- const/4 v2, 0x0
- new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;
- iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
- invoke-direct {v2, v0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V
- iget-object v4, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
- invoke-virtual {v2, v4, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;
- move-result-object v4
- invoke-virtual {v4, v9}, Lcom/htc/widget/HtcAlertDialog$Builder;->setInverseBackgroundForced(Z)Lcom/htc/widget/HtcAlertDialog$Builder;
- invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;
- move-result-object v3
- invoke-virtual {v3}, Lcom/htc/widget/HtcAlertDialog;->getWindow()Landroid/view/Window;
- move-result-object v4
- const/16 v5, 0x7d8
- invoke-virtual {v4, v5}, Landroid/view/Window;->setType(I)V
- iget-object v4, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
- invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
- move-result-object v4
- const v5, 0x1110003
- invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getBoolean(I)Z
- move-result v4
- if-nez v4, :cond_0
- invoke-virtual {v3}, Lcom/htc/widget/HtcAlertDialog;->getWindow()Landroid/view/Window;
- move-result-object v4
- const/4 v1, 0x4
- const/4 v2, 0x4
- :cond_0
- invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->isSense2Mode()Z
- move-result v4
- if-eqz v4, :cond_1
- invoke-virtual {v3, p0}, Lcom/htc/widget/HtcAlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V
- :cond_1
- const-string v0, "ADVANCED POWER MENU"
- const-string v1, "Dialog created"
- invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
- return-object v3
- :cond_2
- const v1, 0x1040139
- goto :goto_0
- .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement