206 lines
5.6 KiB
Smali
206 lines
5.6 KiB
Smali
.class public Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;
|
|
.super Lcom/moji/mjweather/setting/activity/BaseSettingActivity;
|
|
.source "SettingCommonLanguageActivity.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/AdapterView$OnItemClickListener;
|
|
.implements Lcom/moji/mjweather/setting/view/SettingLanguageView;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/mjweather/setting/activity/BaseSettingActivity<",
|
|
"Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;",
|
|
">;",
|
|
"Landroid/widget/AdapterView$OnItemClickListener;",
|
|
"Lcom/moji/mjweather/setting/view/SettingLanguageView;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/widget/ListView;
|
|
|
|
.field private b:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 22
|
|
invoke-direct {p0}, Lcom/moji/mjweather/setting/activity/BaseSettingActivity;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0b0135
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected b()Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;
|
|
.locals 1
|
|
|
|
.line 40
|
|
new-instance v0, Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;-><init>(Lcom/moji/mjweather/setting/view/SettingLanguageView;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected synthetic d()Lcom/moji/mvpframe/BasePresenter;
|
|
.locals 1
|
|
|
|
.line 22
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->b()Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getListView()Landroid/widget/ListView;
|
|
.locals 1
|
|
|
|
.line 78
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->a:Landroid/widget/ListView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public initData()V
|
|
.locals 1
|
|
|
|
.line 50
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->m()Lcom/moji/mvpframe/BasePresenter;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;->d()V
|
|
|
|
.line 51
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->a:Landroid/widget/ListView;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public initView()V
|
|
.locals 1
|
|
|
|
const v0, 0x7f09047b
|
|
|
|
.line 44
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ListView;
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->a:Landroid/widget/ListView;
|
|
|
|
const v0, 0x7f09047c
|
|
|
|
.line 45
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->b:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
.line 33
|
|
invoke-super {p0, p1}, Lcom/moji/mjweather/setting/activity/BaseSettingActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->initView()V
|
|
|
|
.line 35
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->initData()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/widget/AdapterView<",
|
|
"*>;",
|
|
"Landroid/view/View;",
|
|
"IJ)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 68
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->m()Lcom/moji/mvpframe/BasePresenter;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;
|
|
|
|
invoke-virtual {p1, p3}, Lcom/moji/mjweather/setting/presenter/SettingLanguagePresenter;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
|
|
.locals 1
|
|
|
|
.line 57
|
|
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
|
|
|
|
move-result p1
|
|
|
|
const v0, 0x102002c
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 59
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->finish()V
|
|
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public showTitle()V
|
|
.locals 2
|
|
|
|
.line 73
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->b:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
const v1, 0x7f0e084a
|
|
|
|
invoke-virtual {p0, v1}, Lcom/moji/mjweather/setting/fragment/SettingCommonLanguageActivity;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|