discord-jadx/app/src/main/java/com/discord/stores/StoreAuthentication$init$1....

33 lines
1.2 KiB
Java

package com.discord.stores;
import android.content.Context;
import android.content.Intent;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreAuthentication.kt */
public final class StoreAuthentication$init$1 extends o implements Function1<Boolean, Unit> {
public final /* synthetic */ Context $context;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreAuthentication$init$1(Context context) {
super(1);
this.$context = context;
}
/* 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) {
Context context = this.$context;
m.checkNotNullExpressionValue(bool, "isLoggedIn");
context.sendBroadcast(new Intent(bool.booleanValue() ? "com.discord.broadcast.LOGGED_IN" : "com.discord.broadcast.LOGGED_OUT"));
}
}