FeedsABTestConfigFragment.smali

.class public final Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;
.super Landroid/preference/PreferenceFragment;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$a;
    }
.end annotation


# static fields
.field public static final Companion:Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$a;


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;

.field private final abTestManualConfig:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList<",
            "Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;",
            ">;"
        }
    .end annotation
.end field

.field private feedsPreferenceScreen:Landroid/preference/PreferenceScreen;

.field private sharedPreferences:Landroid/content/SharedPreferences;


# direct methods
.method static constructor <clinit>()V
    .registers 2

    new-instance v0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->Companion:Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$a;

    return-void
.end method

.method public constructor <init>()V
    .registers 2

    .line 11
    invoke-direct {p0}, Landroid/preference/PreferenceFragment;-><init>()V

    .line 16
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->abTestManualConfig:Ljava/util/LinkedList;

    return-void
.end method

.method public static final synthetic access$getAbTestManualConfig$p(Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;)Ljava/util/LinkedList;
    .registers 1

    .line 11
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->abTestManualConfig:Ljava/util/LinkedList;

    return-object p0
.end method

.method public static final synthetic access$getSharedPreferences$p(Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;)Landroid/content/SharedPreferences;
    .registers 1

    .line 11
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->sharedPreferences:Landroid/content/SharedPreferences;

    return-object p0
.end method

.method public static final synthetic access$setSharedPreferences$p(Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;Landroid/content/SharedPreferences;)V
    .registers 2

    .line 11
    iput-object p1, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->sharedPreferences:Landroid/content/SharedPreferences;

    return-void
.end method

.method private final initView()V
    .registers 6

    .line 27
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->abTestManualConfig:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_6
    :goto_6
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_8c

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;

    .line 28
    new-instance v2, Landroid/preference/EditTextPreference;

    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->getActivity()Landroid/app/Activity;

    move-result-object v3

    check-cast v3, Landroid/content/Context;

    invoke-direct {v2, v3}, Landroid/preference/EditTextPreference;-><init>(Landroid/content/Context;)V

    .line 1134
    iget-object v3, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->a:Ljava/lang/String;

    .line 29
    invoke-virtual {v2, v3}, Landroid/preference/EditTextPreference;->setKey(Ljava/lang/String;)V

    .line 2134
    iget-object v3, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->a:Ljava/lang/String;

    .line 30
    check-cast v3, Ljava/lang/CharSequence;

    invoke-virtual {v2, v3}, Landroid/preference/EditTextPreference;->setTitle(Ljava/lang/CharSequence;)V

    .line 3134
    iget-object v3, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->a:Ljava/lang/String;

    .line 31
    check-cast v3, Ljava/lang/CharSequence;

    invoke-virtual {v2, v3}, Landroid/preference/EditTextPreference;->setDialogTitle(Ljava/lang/CharSequence;)V

    .line 32
    invoke-virtual {v2}, Landroid/preference/EditTextPreference;->getEditText()Landroid/widget/EditText;

    move-result-object v3

    const-string v4, "preference.editText"

    invoke-static {v3, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 4134
    iget-object v4, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->b:Ljava/lang/String;

    .line 32
    check-cast v4, Ljava/lang/CharSequence;

    invoke-virtual {v3, v4}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 5134
    iget-object v3, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->c:Ljava/lang/String;

    .line 33
    invoke-virtual {v2, v3}, Landroid/preference/EditTextPreference;->setDefaultValue(Ljava/lang/Object;)V

    .line 6134
    iget-object v3, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->c:Ljava/lang/String;

    .line 34
    check-cast v3, Ljava/lang/CharSequence;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_77

    .line 35
    invoke-virtual {v2}, Landroid/preference/EditTextPreference;->getEditText()Landroid/widget/EditText;

    move-result-object v3

    .line 7134
    iget-object v4, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->c:Ljava/lang/String;

    .line 35
    check-cast v4, Ljava/lang/CharSequence;

    invoke-virtual {v3, v4}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 36
    invoke-virtual {v2}, Landroid/preference/EditTextPreference;->getEditText()Landroid/widget/EditText;

    move-result-object v3

    .line 8134
    iget-object v4, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->c:Ljava/lang/String;

    if-eqz v4, :cond_73

    if-nez v1, :cond_67

    .line 36
    invoke-static {}, Lkotlin/f/b/o;->a()V

    .line 9134
    :cond_67
    iget-object v4, v1, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;->c:Ljava/lang/String;

    if-nez v4, :cond_6e

    .line 36
    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_6e
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    goto :goto_74

    :cond_73
    const/4 v4, 0x0

    :goto_74
    invoke-virtual {v3, v4}, Landroid/widget/EditText;->setSelection(I)V

    .line 38
    :cond_77
    new-instance v3, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$b;

    invoke-direct {v3, p0, v1}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment$b;-><init>(Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigActivity$a;)V

    check-cast v3, Landroid/preference/Preference$OnPreferenceChangeListener;

    invoke-virtual {v2, v3}, Landroid/preference/EditTextPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 48
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->feedsPreferenceScreen:Landroid/preference/PreferenceScreen;

    if-eqz v1, :cond_6

    check-cast v2, Landroid/preference/Preference;

    invoke-virtual {v1, v2}, Landroid/preference/PreferenceScreen;->addPreference(Landroid/preference/Preference;)Z

    goto/16 :goto_6

    :cond_8c
    return-void
.end method


# virtual methods
.method public final _$_clearFindViewByIdCache()V
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->_$_findViewCache:Ljava/util/HashMap;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_7
    return-void
.end method

.method public final _$_findCachedViewById(I)Landroid/view/View;
    .registers 4

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->_$_findViewCache:Ljava/util/HashMap;

    if-nez v0, :cond_b

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->_$_findViewCache:Ljava/util/HashMap;

    :cond_b
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    if-nez v0, :cond_2e

    invoke-virtual {p0}, Landroid/app/Fragment;->getView()Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_21

    const/4 p1, 0x0

    return-object p1

    :cond_21
    invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2e
    return-object v0
.end method

.method public final onCreate(Landroid/os/Bundle;)V
    .registers 2

    .line 19
    invoke-super {p0, p1}, Landroid/preference/PreferenceFragment;->onCreate(Landroid/os/Bundle;)V

    const/high16 p1, 0x7e0e0000

    .line 20
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->addPreferencesFromResource(I)V

    .line 21
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

    move-result-object p1

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->feedsPreferenceScreen:Landroid/preference/PreferenceScreen;

    .line 22
    invoke-static {}, Lcom/imo/android/imoim/IMO;->a()Lcom/imo/android/imoim/IMO;

    move-result-object p1

    check-cast p1, Landroid/content/Context;

    invoke-static {p1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p1

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->sharedPreferences:Landroid/content/SharedPreferences;

    .line 23
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->initView()V

    return-void
.end method

.method public final synthetic onDestroyView()V
    .registers 1

    invoke-super {p0}, Landroid/preference/PreferenceFragment;->onDestroyView()V

    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/develop/FeedsABTestConfigFragment;->_$_clearFindViewByIdCache()V

    return-void
.end method