40 lines
1.8 KiB
Java
40 lines
1.8 KiB
Java
package com.discord.stores;
|
|
|
|
import android.app.Application;
|
|
import android.content.SharedPreferences;
|
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
|
import com.discord.utilities.fcm.NotificationClient;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: StoreStream.kt */
|
|
public final class StoreStream$maybeLogNotificationPermissionStatus$1 extends o implements Function1<NotificationClient.SettingsV2, Unit> {
|
|
public final /* synthetic */ Application $context;
|
|
public final /* synthetic */ long $currentTime;
|
|
public final /* synthetic */ SharedPreferences $sharedPrefs;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreStream$maybeLogNotificationPermissionStatus$1(SharedPreferences sharedPreferences, long j, Application application) {
|
|
super(1);
|
|
this.$sharedPrefs = sharedPreferences;
|
|
this.$currentTime = j;
|
|
this.$context = application;
|
|
}
|
|
|
|
/* 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(NotificationClient.SettingsV2 settingsV2) {
|
|
invoke(settingsV2);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(NotificationClient.SettingsV2 settingsV2) {
|
|
this.$sharedPrefs.edit().putLong(StoreStream.access$getLAST_LOGGED_NOTIFICATION_PERMISSIONS_KEY$cp(), this.$currentTime).apply();
|
|
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
|
|
Application application = this.$context;
|
|
m.checkNotNullExpressionValue(settingsV2, "it");
|
|
analyticsTracker.notificationPermissionStatus(application, settingsV2);
|
|
}
|
|
}
|