Skip to content

Commit

Permalink
Merge branch '2.13.7-nolimits' into 2.13.7-fwupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-Walkie-Talkie-by-Darkhorse committed Mar 5, 2022
2 parents e121fb2 + 7a9050e commit 113edf1
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 129 deletions.
2 changes: 1 addition & 1 deletion app/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ Please click the \"+\" button in the upper right corner to add"</string>
<string name="lite_channel_backup">Channel backup</string>
<string name="lite_channel_list">Channel list</string>
<string name="lite_channel_name_placeholder">Channel %1$s</string>
<string name="lite_clear_channel">Clear channels</string>
<string name="lite_clear_channel">Clear channel</string>
<string name="lite_config_file_backup_btn_text">Back up walkie-talkie channels</string>
<string name="lite_config_file_backup_dialog_message">Back up the walkie-talkie channel list to the configuration file now?</string>
<string name="lite_config_file_backup_finish_text">Backed up to configuration file</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,47 +317,33 @@
return-void
.end method

.method private a(Ljava/lang/String;Z)V
.locals 2

.line 25
new-instance v0, Lcom/ifengyu/intercom/lite/c/b/c;

invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

move-result-object v1

invoke-direct {v0, v1}, Lcom/ifengyu/intercom/lite/c/b/c;-><init>(Landroid/content/Context;)V

.line 26
invoke-virtual {v0, p1}, Lcom/qmuiteam/qmui/widget/dialog/QMUIDialogBuilder;->a(Ljava/lang/String;)Lcom/qmuiteam/qmui/widget/dialog/QMUIDialogBuilder;
.method private a(II)V
.locals 3

check-cast v0, Lcom/ifengyu/intercom/lite/c/b/b;
const/4 v1, 0x0

const p1, 0x7f11018c
if-lez p1, :cond_0

.line 27
invoke-static {p1}, Lcom/ifengyu/library/a/m;->b(I)Ljava/lang/String;
invoke-static {p1}, Lcom/ifengyu/intercom/i/c0;->b(I)Ljava/lang/String;

move-result-object p1
move-result-object v1

invoke-virtual {v0, p1}, Lcom/ifengyu/intercom/lite/c/b/b;->b(Ljava/lang/String;)Lcom/ifengyu/intercom/lite/c/b/b;
:cond_0
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

new-instance p1, Lcom/ifengyu/intercom/lite/fragment/n0;
move-result-object v2

invoke-direct {p1, p0, p2}, Lcom/ifengyu/intercom/lite/fragment/n0;-><init>(Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;Z)V
new-instance v0, Lcom/ifengyu/intercom/ui/widget/dialog/o;

.line 28
invoke-virtual {v0, p1}, Lcom/ifengyu/intercom/lite/c/b/b;->a(Lcom/ifengyu/intercom/lite/c/b/b$c;)Lcom/ifengyu/intercom/lite/c/b/b;
invoke-direct {v0, v2, v1, p2}, Lcom/ifengyu/intercom/ui/widget/dialog/o;-><init>(Landroid/app/Activity;Ljava/lang/String;I)V

const p1, 0x7f1200fc
new-instance v2, Lcom/ifengyu/intercom/lite/fragment/n0;

.line 29
invoke-virtual {v0, p1}, Lcom/qmuiteam/qmui/widget/dialog/QMUIDialogBuilder;->a(I)Lcom/qmuiteam/qmui/widget/dialog/b;
invoke-direct {v2, p0, p2}, Lcom/ifengyu/intercom/lite/fragment/n0;-><init>(Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;I)V

move-result-object p1
invoke-virtual {v0, v2}, Lcom/ifengyu/intercom/ui/widget/dialog/o;->a(Lcom/ifengyu/intercom/ui/widget/dialog/o$k;)V

invoke-virtual {p1}, Landroid/app/Dialog;->show()V
invoke-virtual {v0}, Lcom/ifengyu/intercom/ui/widget/dialog/o;->show()V

return-void
.end method
Expand Down Expand Up @@ -495,101 +481,50 @@
return-void
.end method

.method public synthetic a(ZLcom/qmuiteam/qmui/widget/dialog/b;I)V
.locals 1

if-eqz p1, :cond_0

.line 30
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

invoke-virtual {p1, p3}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->setReceiveFreq(I)V

.line 31
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->mItemReceiveFreq:Lcom/ifengyu/library/widget/view/ItemView;
.method public synthetic ao(II)V
.locals 2

iget-object v0, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

invoke-virtual {v0}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getDisplayReceiveFreq()Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Lcom/ifengyu/library/widget/view/ItemView;->setValueText(Ljava/lang/CharSequence;)V

.line 32
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

invoke-virtual {p1}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->isEmpty()Z

move-result p1

if-eqz p1, :cond_1
add-int/lit8 p2, p2, -0x1

.line 33
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;
if-lez p2, :cond_1

invoke-virtual {p1, p3}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->setSendFreq(I)V
:cond_2
invoke-virtual {v0, p1}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->setReceiveFreq(I)V

.line 34
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->mItemSendFreq:Lcom/ifengyu/library/widget/view/ItemView;
invoke-virtual {v0}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getDisplayReceiveFreq()Ljava/lang/String;

iget-object p3, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;
move-result-object p2

invoke-virtual {p3}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getDisplaySendFreq()Ljava/lang/String;
iget-object v1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->mItemReceiveFreq:Lcom/ifengyu/library/widget/view/ItemView;

move-result-object p3
invoke-virtual {v1, p2}, Lcom/ifengyu/library/widget/view/ItemView;->setValueText(Ljava/lang/CharSequence;)V

invoke-virtual {p1, p3}, Lcom/ifengyu/library/widget/view/ItemView;->setValueText(Ljava/lang/CharSequence;)V
invoke-virtual {v0}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getSendFreq()I

goto :goto_0
move-result p2

.line 35
:cond_0
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;
if-gtz p2, :cond_0

invoke-virtual {p1, p3}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->setSendFreq(I)V

.line 36
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->mItemSendFreq:Lcom/ifengyu/library/widget/view/ItemView;

iget-object v0, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;
:cond_1
invoke-virtual {v0, p1}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->setSendFreq(I)V

invoke-virtual {v0}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getDisplaySendFreq()Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Lcom/ifengyu/library/widget/view/ItemView;->setValueText(Ljava/lang/CharSequence;)V

.line 37
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

invoke-virtual {p1}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->isEmpty()Z

move-result p1

if-eqz p1, :cond_1

.line 38
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

invoke-virtual {p1, p3}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->setReceiveFreq(I)V
move-result-object p2

.line 39
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->mItemReceiveFreq:Lcom/ifengyu/library/widget/view/ItemView;
iget-object v1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->mItemSendFreq:Lcom/ifengyu/library/widget/view/ItemView;

iget-object p3, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;
invoke-virtual {v1, p2}, Lcom/ifengyu/library/widget/view/ItemView;->setValueText(Ljava/lang/CharSequence;)V

invoke-virtual {p3}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getDisplayReceiveFreq()Ljava/lang/String;
invoke-virtual {v0}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getReceiveFreq()I

move-result-object p3
move-result p2

invoke-virtual {p1, p3}, Lcom/ifengyu/library/widget/view/ItemView;->setValueText(Ljava/lang/CharSequence;)V

.line 40
:cond_1
:goto_0
invoke-virtual {p2}, Landroidx/appcompat/app/d;->dismiss()V
if-lez p2, :cond_2

:cond_0
return-void
.end method

Expand Down Expand Up @@ -665,24 +600,22 @@
.line 5
invoke-direct {p0, p1, v0, v1, v2}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(Ljava/lang/String;ZII)V

goto :goto_0
return-void

.line 6
:sswitch_1
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

if-eqz p1, :cond_0

const p1, 0x7f110116
invoke-virtual {p1}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getSendFreq()I

.line 7
invoke-static {p1}, Lcom/ifengyu/library/a/m;->b(I)Ljava/lang/String;
move-result p1

move-result-object p1
const/4 v1, 0x1

invoke-direct {p0, p1, v0}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(Ljava/lang/String;Z)V
invoke-direct {p0, p1, v1}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(II)V

goto :goto_0
return-void

.line 8
:sswitch_2
Expand Down Expand Up @@ -713,24 +646,22 @@
.line 11
invoke-direct {p0, p1, v1, v0, v2}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(Ljava/lang/String;ZII)V

goto :goto_0
return-void

.line 12
:sswitch_3
iget-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->z:Lcom/ifengyu/intercom/lite/models/ChannelModel;

if-eqz p1, :cond_0

const p1, 0x7f11029b
invoke-virtual {p1}, Lcom/ifengyu/intercom/lite/models/ChannelModel;->getReceiveFreq()I

.line 13
invoke-static {p1}, Lcom/ifengyu/library/a/m;->b(I)Ljava/lang/String;
move-result p1

move-result-object p1
const/4 v1, 0x2

invoke-direct {p0, p1, v1}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(Ljava/lang/String;Z)V
invoke-direct {p0, p1, v1}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(II)V

goto :goto_0
return-void

.line 14
:sswitch_4
Expand All @@ -748,8 +679,6 @@
:goto_0
return-void

nop

:sswitch_data_0
.sparse-switch
0x7f090095 -> :sswitch_4
Expand Down
31 changes: 23 additions & 8 deletions app/smali_classes2/com/ifengyu/intercom/lite/fragment/n0.smali
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,53 @@
.source "lambda"

# interfaces
.implements Lcom/ifengyu/intercom/lite/c/b/b$c;
.implements Lcom/ifengyu/intercom/ui/widget/dialog/o$k;


# instance fields
.field private final synthetic a:Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;

.field private final synthetic b:Z
.field private final synthetic b:I


# direct methods
.method public synthetic constructor <init>(Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;Z)V
.method public synthetic constructor <init>(Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;I)V
.locals 0

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

iput-object p1, p0, Lcom/ifengyu/intercom/lite/fragment/n0;->a:Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;

iput-boolean p2, p0, Lcom/ifengyu/intercom/lite/fragment/n0;->b:Z
iput p2, p0, Lcom/ifengyu/intercom/lite/fragment/n0;->b:I

return-void
.end method


# virtual methods
.method public final a(Lcom/qmuiteam/qmui/widget/dialog/b;I)V
.method public a(Ljava/lang/String;)V
.locals 0

invoke-virtual {p0, p1}, Lcom/ifengyu/intercom/lite/fragment/n0;->b(Ljava/lang/String;)V

return-void
.end method

.method public b(Ljava/lang/String;)V
.locals 2

invoke-static {p1}, Lcom/ifengyu/intercom/i/c0;->c(Ljava/lang/String;)I

move-result p1

if-lez p1, :cond_0

iget-object v0, p0, Lcom/ifengyu/intercom/lite/fragment/n0;->a:Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;

iget-boolean v1, p0, Lcom/ifengyu/intercom/lite/fragment/n0;->b:Z
iget v1, p0, Lcom/ifengyu/intercom/lite/fragment/n0;->b:I

invoke-virtual {v0, v1, p1, p2}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->a(ZLcom/qmuiteam/qmui/widget/dialog/b;I)V
invoke-virtual {v0, p1, v1}, Lcom/ifengyu/intercom/lite/fragment/LiteChannelEditFragment;->ao(II)V

:cond_0
return-void
.end method
.end method

0 comments on commit 113edf1

Please sign in to comment.