[Java] 纯文本查看 复制代码
.method public a(Landroid/content/Context;Z)Z
.locals 8
.prologue
const/16 v7, 0x64
const/16 v5, 0xa #十进制是10,就是10本书的最大上限
const/4 v6, 0x0
const/4 v0, 0x1
const/4 v1, 0x0
.line 171
invoke-static {}, Lcom/biquge/ebook/app/b/h;->a()Lcom/biquge/ebook/app/b/h;
move-result-object v2
invoke-virtual {v2}, Lcom/biquge/ebook/app/b/h;->b()Z
move-result v2
if-nez v2, :cond_0
.line 172
invoke-virtual {p0}, Lcom/biquge/ebook/app/d/a/a;->a()Ljava/util/List;
move-result-object v2
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
#if-lt v2, v5, :cond_2 #如果小于10本书跳转到cond_2正常条件,继续添加书籍,否则显示限制提示。所以删除此条件就可达到去出现之目的。
goto :cond_2
.line 173
new-instance v2, Lcom/biquge/ebook/app/widget/DialogTips;
invoke-direct {v2, p1}, Lcom/biquge/ebook/app/widget/DialogTips;-><init>(Landroid/content/Context;)V
.line 174
const v3, 0x7f07015e #上限错误提示
new-array v4, v0, [Ljava/lang/Object;
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
aput-object v5, v4, v1
invoke-static {v6, v3, v4}, Lcom/biquge/ebook/app/utils/s;->a(Landroid/content/Context;I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/biquge/ebook/app/widget/DialogTips;->b(Ljava/lang/String;)V
.line 175
const v3, 0x7f070111
invoke-static {v6, v3}, Lcom/biquge/ebook/app/utils/s;->a(Landroid/content/Context;I)Ljava/lang/String;
move-result-object v3
new-instance v4, Lcom/biquge/ebook/app/d/a/a$1;
invoke-direct {v4, p0, p1, p2}, Lcom/biquge/ebook/app/d/a/a$1;-><init>(Lcom/biquge/ebook/app/d/a/a;Landroid/content/Context;Z)V
invoke-virtual {v2, v3, v4}, Lcom/biquge/ebook/app/widget/DialogTips;->a(Ljava/lang/String;Lcom/biquge/ebook/app/widget/DialogTips$b;)V
.line 189
invoke-virtual {v2, v6}, Lcom/biquge/ebook/app/widget/DialogTips;->a(Lcom/biquge/ebook/app/widget/DialogTips$a;)V
.line 190
invoke-virtual {v2, v1}, Lcom/biquge/ebook/app/widget/DialogTips;->setCanceledOnTouchOutside(Z)V
.line 191
invoke-virtual {v2}, Lcom/biquge/ebook/app/widget/DialogTips;->show()V
.line 215
:goto_0
return v0
.line 195
:cond_0
invoke-virtual {p0}, Lcom/biquge/ebook/app/d/a/a;->a()Ljava/util/List;
move-result-object v2
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
if-lt v2, v7, :cond_2
.line 196
new-instance v2, Lcom/biquge/ebook/app/widget/DialogTips;
invoke-direct {v2, p1}, Lcom/biquge/ebook/app/widget/DialogTips;-><init>(Landroid/content/Context;)V
.line 197
const v3, 0x7f07010e
new-array v4, v0, [Ljava/lang/Object;
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
aput-object v5, v4, v1
invoke-static {v6, v3, v4}, Lcom/biquge/ebook/app/utils/s;->a(Landroid/content/Context;I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/biquge/ebook/app/widget/DialogTips;->b(Ljava/lang/String;)V
.line 198
invoke-virtual {v2, v1}, Lcom/biquge/ebook/app/widget/DialogTips;->setCanceledOnTouchOutside(Z)V
.line 199
if-eqz p2, :cond_1
.line 200
new-instance v1, Lcom/biquge/ebook/app/d/a/a$2;
invoke-direct {v1, p0, p1}, Lcom/biquge/ebook/app/d/a/a$2;-><init>(Lcom/biquge/ebook/app/d/a/a;Landroid/content/Context;)V
invoke-virtual {v2, v1}, Lcom/biquge/ebook/app/widget/DialogTips;->a(Lcom/biquge/ebook/app/widget/DialogTips$b;)V
.line 211
:cond_1
invoke-virtual {v2}, Lcom/biquge/ebook/app/widget/DialogTips;->show()V
goto :goto_0
:cond_2
move v0, v1
.line 215
goto :goto_0
.end method