package com.discord.utilities.voice; import android.content.Intent; import com.discord.app.AppLog; import com.discord.stores.StoreStream; import com.discord.utilities.logging.Logger; import com.discord.utilities.voice.DiscordOverlayService; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: DiscordOverlayService.kt */ public final class DiscordOverlayService$onStartCommand$2 extends o implements Function1 { public final /* synthetic */ Intent $intent; public final /* synthetic */ int $startId; public final /* synthetic */ DiscordOverlayService this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public DiscordOverlayService$onStartCommand$2(DiscordOverlayService discordOverlayService, int i, Intent intent) { super(1); this.this$0 = discordOverlayService; this.$startId = i; this.$intent = intent; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) { invoke(bool); return Unit.a; } public final void invoke(Boolean bool) { if (!StoreStream.Companion.getUserSettings().getIsMobileOverlayEnabled()) { this.this$0.stopForeground(true); this.this$0.stopSelf(this.$startId); return; } try { DiscordOverlayService.access$handleStart$s1927314545(this.this$0, this.$intent); } catch (Exception e) { Logger.e$default(AppLog.g, "OverlayService", "Overlay failed to handle a request.", e, null, 8, null); DiscordOverlayService.Companion.tryStartOverlayService$default(DiscordOverlayService.Companion, this.this$0, "com.discord.actions.OVERLAY_CLOSE", false, 4, null); } } }