116 lines
3.3 KiB
Smali
116 lines
3.3 KiB
Smali
.class Lcom/moji/mjweather/weather/WeatherPageView$6;
|
|
.super Ljava/lang/Object;
|
|
.source "WeatherPageView.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/weather/WeatherPageView;->f()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/mjweather/weather/WeatherPageView;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/weather/WeatherPageView;)V
|
|
.locals 0
|
|
|
|
.line 264
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$6;->a:Lcom/moji/mjweather/weather/WeatherPageView;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/moji/dialog/MJDialog;Lcom/moji/dialog/type/ETypeAction;)V
|
|
.locals 1
|
|
.param p1 # Lcom/moji/dialog/MJDialog;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/moji/dialog/type/ETypeAction;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 267
|
|
invoke-virtual {p1}, Lcom/moji/dialog/MJDialog;->dismiss()V
|
|
|
|
.line 268
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-string p2, "android.settings.WIFI_SETTINGS"
|
|
|
|
invoke-direct {p1, p2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const/high16 p2, 0x10000000
|
|
|
|
.line 269
|
|
invoke-virtual {p1, p2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
|
|
.line 270
|
|
iget-object p2, p0, Lcom/moji/mjweather/weather/WeatherPageView$6;->a:Lcom/moji/mjweather/weather/WeatherPageView;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/mjweather/weather/WeatherPageView;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 272
|
|
invoke-virtual {p1, p2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
|
|
|
|
.line 273
|
|
iget-object p2, p0, Lcom/moji/mjweather/weather/WeatherPageView$6;->a:Lcom/moji/mjweather/weather/WeatherPageView;
|
|
|
|
invoke-virtual {p2}, Lcom/moji/mjweather/weather/WeatherPageView;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 275
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$6;->a:Lcom/moji/mjweather/weather/WeatherPageView;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object p1
|
|
|
|
const p2, 0x7f0e044e
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-static {p1, p2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|