BaseMyProfileViewModel$1.smali

.class final Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroidx/lifecycle/Observer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroidx/lifecycle/Observer<",
        "Lcom/imo/android/imoim/profile/viewmodel/e;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$a;

.field final synthetic b:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$a;Ljava/lang/String;)V
    .registers 3

    .line 145
    iput-object p1, p0, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$1;->a:Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$a;

    iput-object p2, p0, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$1;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final synthetic onChanged(Ljava/lang/Object;)V
    .registers 4

    .line 145
    check-cast p1, Lcom/imo/android/imoim/profile/viewmodel/e;

    if-eqz p1, :cond_2a

    .line 1152
    invoke-static {p1}, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel;->a(Lcom/imo/android/imoim/profile/viewmodel/e;)Lcom/imo/android/imoim/profile/viewmodel/e;

    .line 1153
    iget-object p1, p0, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$1;->a:Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$a;

    iget-boolean p1, p1, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$a;->b:Z

    if-eqz p1, :cond_2a

    .line 1154
    invoke-static {}, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel;->k()Landroid/content/SharedPreferences;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    iget-object v0, p0, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel$1;->b:Ljava/lang/String;

    invoke-static {}, Lcom/imo/android/imoim/profile/viewmodel/me/BaseMyProfileViewModel;->j()Lcom/imo/android/imoim/profile/viewmodel/e;

    move-result-object v1

    invoke-virtual {v1}, Lcom/imo/android/imoim/profile/viewmodel/e;->a()Lorg/json/JSONObject;

    move-result-object v1

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-interface {p1, v0, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V

    :cond_2a
    return-void
.end method