Weather/smali_classes2/com/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl.smali
2021-05-10 10:13:34 +02:00

158 lines
5.2 KiB
Smali

.class Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;
.super Ljava/lang/Object;
.source "WeatherAlertActivity.java"
# interfaces
.implements Lcom/moji/mjweather/alert/WeatherAlertPresenter$WeatherAlertCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/moji/mjweather/alert/WeatherAlertActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "WeatherAlertCallbackImpl"
.end annotation
# instance fields
.field final synthetic a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
# direct methods
.method private constructor <init>(Lcom/moji/mjweather/alert/WeatherAlertActivity;)V
.locals 0
.line 405
iput-object p1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;->a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Lcom/moji/mjweather/alert/WeatherAlertActivity;Lcom/moji/mjweather/alert/WeatherAlertActivity$1;)V
.locals 0
.line 405
invoke-direct {p0, p1}, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;-><init>(Lcom/moji/mjweather/alert/WeatherAlertActivity;)V
return-void
.end method
# virtual methods
.method public a(Lcom/moji/http/snsforum/entity/PhotoAlertResult;)V
.locals 2
.line 433
iget v0, p1, Lcom/moji/http/snsforum/entity/PhotoAlertResult;->show_flag:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
.line 434
iget-object v0, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;->a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
new-instance v1, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl$2;
invoke-direct {v1, p0, p1}, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl$2;-><init>(Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;Lcom/moji/http/snsforum/entity/PhotoAlertResult;)V
invoke-virtual {v0, v1}, Lcom/moji/mjweather/alert/WeatherAlertActivity;->runOnUiThread(Ljava/lang/Runnable;)V
:cond_0
return-void
.end method
.method public a(Lcom/moji/weatherprovider/data/Weather;)V
.locals 2
const-string v0, "WeatherAlertActivity"
const-string v1, "request onWeatherUpdateSuccess"
.line 409
invoke-static {v0, v1}, Lcom/moji/tool/log/UserLog;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 410
iget-object v0, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;->a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
invoke-static {v0, p1}, Lcom/moji/mjweather/alert/WeatherAlertActivity;->a(Lcom/moji/mjweather/alert/WeatherAlertActivity;Lcom/moji/weatherprovider/data/Weather;)V
return-void
.end method
.method public a(Lcom/moji/weatherprovider/update/Result;)V
.locals 3
const-string v0, "WeatherAlertActivity"
.line 415
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "request onWeatherUpdateFailure : result.errCode = "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, p1, Lcom/moji/weatherprovider/update/Result;->a:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/moji/tool/log/UserLog;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 416
iget v0, p1, Lcom/moji/weatherprovider/update/Result;->a:I
const/16 v1, 0xf
if-ne v0, v1, :cond_0
.line 418
iget-object p1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;->a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
invoke-static {p1}, Lcom/moji/mjweather/alert/WeatherAlertActivity;->e(Lcom/moji/mjweather/alert/WeatherAlertActivity;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
move-result-object p1
new-instance v0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl$1;
invoke-direct {v0, p0}, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl$1;-><init>(Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;)V
invoke-virtual {p1, v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->c(Landroid/view/View$OnClickListener;)V
goto :goto_0
.line 424
:cond_0
iget p1, p1, Lcom/moji/weatherprovider/update/Result;->a:I
const/16 v0, 0xc
if-ne p1, v0, :cond_1
.line 425
iget-object p1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;->a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
invoke-static {p1}, Lcom/moji/mjweather/alert/WeatherAlertActivity;->f(Lcom/moji/mjweather/alert/WeatherAlertActivity;)V
goto :goto_0
.line 427
:cond_1
iget-object p1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$WeatherAlertCallbackImpl;->a:Lcom/moji/mjweather/alert/WeatherAlertActivity;
invoke-static {p1}, Lcom/moji/mjweather/alert/WeatherAlertActivity;->g(Lcom/moji/mjweather/alert/WeatherAlertActivity;)V
:goto_0
return-void
.end method