.class public abstract Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;
.super Lcom/moji/mjappstore/BaseFragmentActivity;
.source "AppStoreBasePictureAdActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnTouchListener;
.implements Lcom/moji/mjappstore/receiver/AppStorePackageReceiver$IPackageInfoAction;
.implements Lcom/moji/scrollview/LazyScrollView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$ButtonOnClickListener;
    }
.end annotation


# static fields
.field public static final FIRSTTOKEN:Ljava/lang/String; = "0000-00-00"

.field public static final GO_DETAIL:I = 0x2

.field public static instance:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity; = null

.field private static final n:Ljava/lang/String; = "AppStoreBasePictureAdActivity"


# instance fields
.field protected a:Z

.field protected b:I

.field protected c:I

.field protected i:Ljava/lang/String;

.field protected j:I

.field protected k:I

.field protected l:Landroid/widget/TextView;

.field protected final m:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field private o:Landroid/widget/LinearLayout;

.field private p:I

.field private q:Landroid/util/DisplayMetrics;

.field private r:Landroid/view/LayoutInflater;

.field private s:Z

.field private t:Landroid/widget/LinearLayout;

.field private u:Landroid/widget/LinearLayout;

.field private v:Lcom/moji/scrollview/LazyScrollView;

.field private w:Ljava/lang/String;

.field private x:Landroid/widget/LinearLayout;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 37
    invoke-direct {p0}, Lcom/moji/mjappstore/BaseFragmentActivity;-><init>()V

    const/4 v0, 0x0

    .line 47
    iput-boolean v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a:Z

    const/16 v0, 0xf

    .line 52
    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b:I

    const-string v0, "0000-00-00"

    .line 55
    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->i:Ljava/lang/String;

    .line 61
    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->m:Ljava/util/Map;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->t:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Ljava/util/List;I)V
    .locals 0

    .line 37
    invoke-direct {p0, p1, p2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Ljava/util/List;I)V

    return-void
.end method

.method private a(Ljava/util/List;I)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;",
            ">;I)V"
        }
    .end annotation

    .line 144
    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)F

    move-result v0

    .line 145
    iget v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->p:I

    int-to-float v1, v1

    add-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->p:I

    .line 146
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 148
    invoke-static {}, Lcom/moji/tool/DeviceTool;->f()F

    move-result v1

    const/high16 v2, 0x42a40000    # 82.0f

    mul-float v1, v1, v2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 150
    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->m:Ljava/util/Map;

    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {v2}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getIcon()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 151
    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->m:Ljava/util/Map;

    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {v2}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getIcon()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 152
    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {p0, p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getMyView(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)Landroid/view/View;

    move-result-object p1

    .line 153
    iget-object p2, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {p2, p1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Z)Z
    .locals 0

    .line 37
    iput-boolean p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->s:Z

    return p1
.end method

.method private b(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)I
    .locals 2

    .line 158
    sget-object v0, Lcom/moji/mjappstore/engine/AppUtil;->a:Ljava/util/HashMap;

    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getAppid()Ljava/lang/String;

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_0

    .line 159
    sget-object v0, Lcom/moji/mjappstore/engine/AppUtil;->a:Ljava/util/HashMap;

    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getAppid()Ljava/lang/String;

    move-result-object p1

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

    move-result-object p1

    check-cast p1, Ljava/lang/Integer;

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    return p1

    .line 161
    :cond_0
    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getSoftstate()I

    move-result p1

    return p1
.end method

.method static synthetic b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->u:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    return-object p0
.end method


# virtual methods
.method public LoadAppInfoTask()V
    .locals 1

    const/4 v0, 0x1

    .line 90
    iput-boolean v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->s:Z

    .line 91
    new-instance v0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;

    invoke-direct {v0, p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;-><init>(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)V

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Lcom/moji/mjappstore/listener/ObtainAppLoaderListener;)V

    return-void
.end method

.method protected a(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)F
    .locals 1

    .line 188
    invoke-static {}, Lcom/moji/tool/DeviceTool;->f()F

    move-result p1

    const/high16 v0, 0x42a40000    # 82.0f

    mul-float p1, p1, v0

    return p1
.end method

.method protected a()V
    .locals 3

    .line 75
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->q:Landroid/util/DisplayMetrics;

    const/4 v0, 0x0

    .line 76
    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->p:I

    .line 77
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->r:Landroid/view/LayoutInflater;

    const/4 v0, 0x0

    .line 78
    invoke-static {p0, v0}, Lcom/moji/mjappstore/receiver/AppStorePackageReceiver;->a(Landroid/content/Context;Lcom/moji/mjappstore/receiver/AppStorePackageReceiver;)V

    .line 79
    sput-object p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->instance:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    .line 80
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "requestId"

    const/4 v2, -0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->c:I

    .line 81
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "requestName"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->w:Ljava/lang/String;

    return-void
.end method

.method protected a(Landroid/view/View;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)V
    .locals 2

    .line 397
    sget v0, Lcom/moji/mjappstore/R$id;->btn_appstore_button:I

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

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    .line 398
    invoke-direct {p0, p2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)I

    move-result p2

    const/4 v0, 0x1

    const/4 v1, 0x5

    if-ne p2, v1, :cond_0

    .line 400
    sget p2, Lcom/moji/mjappstore/R$string;->install:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setText(I)V

    .line 401
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setClickable(Z)V

    .line 402
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setEnabled(Z)V

    .line 403
    sget p2, Lcom/moji/mjappstore/R$drawable;->common_btn_blue_selector:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_0

    :cond_0
    const/4 v1, 0x4

    if-ne p2, v1, :cond_1

    .line 405
    sget p2, Lcom/moji/mjappstore/R$string;->app_downloading:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setText(I)V

    const/4 p2, 0x0

    .line 406
    invoke-virtual {p1, p2}, Landroid/widget/Button;->setClickable(Z)V

    .line 407
    invoke-virtual {p1, p2}, Landroid/widget/Button;->setEnabled(Z)V

    .line 408
    sget p2, Lcom/moji/mjappstore/R$drawable;->common_btn_gray:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_0

    :cond_1
    const/4 v1, 0x3

    if-ne p2, v1, :cond_2

    .line 410
    sget p2, Lcom/moji/mjappstore/R$string;->update:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setText(I)V

    .line 411
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setClickable(Z)V

    .line 412
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setEnabled(Z)V

    .line 413
    sget p2, Lcom/moji/mjappstore/R$drawable;->common_btn_red_selector:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_0

    :cond_2
    if-ne p2, v0, :cond_3

    .line 415
    sget p2, Lcom/moji/mjappstore/R$string;->open:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setText(I)V

    .line 416
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setClickable(Z)V

    .line 417
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setEnabled(Z)V

    .line 418
    sget p2, Lcom/moji/mjappstore/R$drawable;->common_btn_blue_selector:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_0

    :cond_3
    const/4 v1, 0x2

    if-ne p2, v1, :cond_4

    .line 420
    sget p2, Lcom/moji/mjappstore/R$string;->download:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setText(I)V

    .line 421
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setClickable(Z)V

    .line 422
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setEnabled(Z)V

    .line 423
    sget p2, Lcom/moji/mjappstore/R$drawable;->common_btn_green_selector:I

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setBackgroundResource(I)V

    :cond_4
    :goto_0
    return-void
.end method

.method protected abstract a(Lcom/moji/mjappstore/listener/ObtainAppLoaderListener;)V
.end method

.method protected a(Ljava/lang/String;Landroid/widget/TextView;)V
    .locals 2

    .line 429
    invoke-static {p1}, Lcom/moji/tool/Utils;->a(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    if-eqz p2, :cond_1

    .line 432
    :try_start_0
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    const/16 v1, 0x2710

    if-lt v0, v1, :cond_0

    .line 434
    div-int/2addr v0, v1

    .line 435
    new-instance p1, Ljava/lang/StringBuilder;

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

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "\u4e07"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/moji/mjappstore/R$string;->appstore_down_num:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 437
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

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

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v1, Lcom/moji/mjappstore/R$string;->appstore_down_num:I

    invoke-virtual {p1, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 440
    sget-object v0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->n:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    const/4 p1, 0x0

    .line 442
    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_1
    return-void
.end method

.method protected b()V
    .locals 1

    .line 85
    sget v0, Lcom/moji/mjappstore/R$layout;->activity_appstore_classify_base:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->setContentView(I)V

    return-void
.end method

.method protected c()V
    .locals 2

    .line 176
    sget v0, Lcom/moji/mjappstore/R$id;->lsv_appsotre_scroll:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/scrollview/LazyScrollView;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->v:Lcom/moji/scrollview/LazyScrollView;

    .line 177
    sget v0, Lcom/moji/mjappstore/R$id;->appstore_waterfall_container:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    .line 178
    sget v0, Lcom/moji/mjappstore/R$id;->appstore_bottom_progress:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->o:Landroid/widget/LinearLayout;

    .line 179
    sget v0, Lcom/moji/mjappstore/R$id;->layout_load:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->t:Landroid/widget/LinearLayout;

    .line 180
    sget v0, Lcom/moji/mjappstore/R$id;->layout_appstore_refresh:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->u:Landroid/widget/LinearLayout;

    .line 181
    sget v0, Lcom/moji/mjappstore/R$id;->tv_notify_text:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->l:Landroid/widget/TextView;

    .line 182
    sget v0, Lcom/moji/mjappstore/R$id;->mj_title_bar:I

    invoke-virtual {p0, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/titlebar/MJTitleBar;

    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->mTvTitle:Lcom/moji/titlebar/MJTitleBar;

    .line 183
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->mTvTitle:Lcom/moji/titlebar/MJTitleBar;

    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->w:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method protected d()V
    .locals 2

    .line 166
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->t:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 167
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 168
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->u:Landroid/widget/LinearLayout;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setClickable(Z)V

    .line 169
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k()V

    .line 170
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->v:Lcom/moji/scrollview/LazyScrollView;

    invoke-virtual {v0}, Lcom/moji/scrollview/LazyScrollView;->getView()V

    .line 171
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->v:Lcom/moji/scrollview/LazyScrollView;

    invoke-virtual {v0, p0}, Lcom/moji/scrollview/LazyScrollView;->setOnScrollListener(Lcom/moji/scrollview/LazyScrollView$OnScrollListener;)V

    return-void
.end method

.method protected e()V
    .locals 0

    return-void
.end method

.method public getMyView(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)Landroid/view/View;
    .locals 5

    .line 205
    iget v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k:I

    .line 206
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->r:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjappstore/R$layout;->item_appstroe_list:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 207
    sget v1, Lcom/moji/mjappstore/R$id;->riv_appstore_remote_image:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/imageview/RemoteImageView;

    .line 208
    invoke-virtual {p0, v0, p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Landroid/view/View;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)V

    .line 209
    invoke-virtual {v0, p1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 210
    sget v2, Lcom/moji/mjappstore/R$id;->btn_appstore_button:I

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

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    .line 211
    new-instance v3, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$ButtonOnClickListener;

    invoke-direct {v3, p0, p1, v2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$ButtonOnClickListener;-><init>(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;Landroid/widget/Button;)V

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 213
    sget v2, Lcom/moji/mjappstore/R$id;->tv_app_name:I

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

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const/4 v3, 0x6

    .line 214
    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setMaxEms(I)V

    .line 215
    iget v3, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->j:I

    const/4 v4, 0x3

    if-ne v3, v4, :cond_0

    .line 216
    new-instance v3, Ljava/lang/StringBuilder;

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

    iget v4, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v4, "."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

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

    goto :goto_0

    .line 218
    :cond_0
    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getName()Ljava/lang/String;

    move-result-object v3

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

    .line 220
    :goto_0
    sget v2, Lcom/moji/mjappstore/R$id;->tv_appstore_down_num:I

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

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 221
    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getDownload()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0, v3, v2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Ljava/lang/String;Landroid/widget/TextView;)V

    .line 222
    sget v2, Lcom/moji/mjappstore/R$id;->tv_appstore_description:I

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

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 224
    sget v3, Lcom/moji/mjappstore/R$id;->tv_appstore_app_size:I

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

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const/16 v4, 0xb

    .line 226
    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setMaxEms(I)V

    .line 227
    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getDesc()Ljava/lang/String;

    move-result-object v4

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

    .line 229
    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getSize()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/moji/tool/Utils;->a(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    const/4 v2, 0x0

    .line 230
    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 231
    new-instance v2, Ljava/lang/StringBuilder;

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

    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getSize()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "M"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

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

    .line 234
    :cond_1
    invoke-virtual {p1}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getIcon()Ljava/lang/String;

    move-result-object v2

    .line 235
    invoke-static {p0, v1, v2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->loadImage(Landroid/content/Context;Landroid/widget/ImageView;Ljava/lang/String;)V

    .line 236
    new-instance v1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$2;

    invoke-direct {v1, p0, p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$2;-><init>(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0
.end method

.method protected j()V
    .locals 2

    .line 254
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->o:Landroid/widget/LinearLayout;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method

.method protected k()V
    .locals 2

    .line 258
    iget-boolean v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->s:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const-string v0, "0000-00-00"

    .line 261
    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 262
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->loading()V

    .line 264
    :cond_1
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->LoadAppInfoTask()V

    return-void
.end method

.method public loading()V
    .locals 2

    .line 268
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->o:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method

.method public onAutoScroll(IIII)V
    .locals 0

    return-void
.end method

.method public onBottom()V
    .locals 1

    .line 343
    iget-boolean v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a:Z

    if-nez v0, :cond_0

    .line 344
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 277
    invoke-static {}, Lcom/moji/mjappstore/engine/AppUtil;->a()Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 280
    :cond_0
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->u:Landroid/widget/LinearLayout;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 281
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->t:Landroid/widget/LinearLayout;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 282
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshWaterfall()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 70
    invoke-super {p0, p1}, Lcom/moji/mjappstore/BaseFragmentActivity;->onCreate(Landroid/os/Bundle;)V

    .line 71
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k()V

    return-void
.end method

.method public onDestroy()V
    .locals 2

    .line 287
    invoke-super {p0}, Lcom/moji/mjappstore/BaseFragmentActivity;->onDestroy()V

    .line 289
    sget-object v0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->instance:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 290
    sput-object v1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->instance:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    .line 292
    :cond_0
    invoke-static {p0, v1}, Lcom/moji/mjappstore/receiver/AppStorePackageReceiver;->b(Landroid/content/Context;Lcom/moji/mjappstore/receiver/AppStorePackageReceiver;)V

    return-void
.end method

.method public onDown(Landroid/view/MotionEvent;)V
    .locals 0

    return-void
.end method

.method public onDownloadFinish()V
    .locals 0

    .line 298
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshViewState()V

    return-void
.end method

.method public onDownloading()V
    .locals 0

    .line 302
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshViewState()V

    return-void
.end method

.method public onInstalled()V
    .locals 0

    .line 306
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshViewState()V

    return-void
.end method

.method public onReplaced()V
    .locals 0

    .line 310
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshViewState()V

    return-void
.end method

.method public onResume()V
    .locals 0

    .line 317
    invoke-super {p0}, Lcom/moji/mjappstore/BaseFragmentActivity;->onResume()V

    .line 318
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshViewState()V

    return-void
.end method

.method public onScroll(Landroid/view/MotionEvent;)V
    .locals 0

    return-void
.end method

.method public onScrollEnd()V
    .locals 2

    .line 332
    iget v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->p:I

    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->v:Lcom/moji/scrollview/LazyScrollView;

    invoke-virtual {v1}, Lcom/moji/scrollview/LazyScrollView;->getScrollY()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->q:Landroid/util/DisplayMetrics;

    iget v1, v1, Landroid/util/DisplayMetrics;->heightPixels:I

    mul-int/lit8 v1, v1, 0x2

    if-ge v0, v1, :cond_0

    .line 333
    iget-boolean v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->s:Z

    if-nez v0, :cond_0

    .line 334
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k()V

    :cond_0
    return-void
.end method

.method public onScrollEndDelay()V
    .locals 0

    return-void
.end method

.method public onScrollStart()V
    .locals 0

    return-void
.end method

.method public onSizeChanged()V
    .locals 1

    .line 362
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->requestLayout()V

    return-void
.end method

.method public onTop()V
    .locals 0

    return-void
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method public onUninstalled()V
    .locals 0

    .line 314
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->refreshViewState()V

    return-void
.end method

.method public refreshViewState()V
    .locals 4

    const/4 v0, 0x0

    .line 371
    :goto_0
    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 372
    iget-object v1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    .line 373
    invoke-virtual {v1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 374
    instance-of v3, v2, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    if-eqz v3, :cond_0

    .line 375
    check-cast v2, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    .line 377
    invoke-static {p0, v2}, Lcom/moji/mjappstore/engine/AppUtil;->a(Landroid/content/Context;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)I

    .line 378
    invoke-virtual {p0, v1, v2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Landroid/view/View;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)V

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method public refreshWaterfall()V
    .locals 0

    .line 384
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->resetState()V

    .line 385
    invoke-virtual {p0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k()V

    return-void
.end method

.method public resetState()V
    .locals 1

    .line 389
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    const/16 v0, 0xa

    .line 390
    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b:I

    const-string v0, "0000-00-00"

    .line 391
    iput-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->i:Ljava/lang/String;

    const/4 v0, 0x0

    .line 392
    iput v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->p:I

    .line 393
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->m:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    return-void
.end method
