2019-07-24 11:27:29 +00:00
|
|
|
.class final Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetGuildCall.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/Action1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->configureMenu(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lrx/functions/Action1<",
|
|
|
|
"Landroid/view/Menu;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final synthetic $model:Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;->$model:Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final call(Landroid/view/Menu;)V
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;->$model:Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/voice/model/CallModel;->getChannelPermissions()Ljava/lang/Integer;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const/16 v1, 0x10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-static {v1, v0}, Lcom/discord/utilities/permissions/PermissionUtils;->can(ILjava/lang/Integer;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
const v1, 0x7f0a045c
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v2, "menu.findItem(R.id.menu_\u2026ld_call_channel_settings)"
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
invoke-interface {v1, v0}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;->$model:Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/voice/model/CallModel;->isConnected()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getMobileOverlay()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const/4 v0, 0x1
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
2019-07-31 00:08:31 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:goto_0
|
2019-10-07 23:23:22 +00:00
|
|
|
const v1, 0x7f0a045d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v1, "menu.findItem(R.id.menu_\u2026ld_call_overlay_launcher)"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-interface {p1, v0}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final bridge synthetic call(Ljava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Landroid/view/Menu;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;->call(Landroid/view/Menu;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|