34 lines
1.3 KiB
Java
34 lines
1.3 KiB
Java
package com.discord.stores;
|
|
|
|
import android.content.SharedPreferences;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: StoreNotices.kt */
|
|
public final class StoreNotices$firstUseTimestamp$2 extends o implements Function0<Long> {
|
|
public final /* synthetic */ StoreNotices this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreNotices$firstUseTimestamp$2(StoreNotices storeNotices) {
|
|
super(0);
|
|
this.this$0 = storeNotices;
|
|
}
|
|
|
|
/* Return type fixed from 'long' to match base method */
|
|
/* JADX WARNING: Unknown variable types count: 2 */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final Long mo1invoke() {
|
|
?? r4 = this.this$0.getPrefsSessionDurable().getLong("CACHE_KEY_FIRST_USE", -1);
|
|
if (r4 != -1) {
|
|
return r4;
|
|
}
|
|
?? currentTimeMillis = StoreNotices.access$getClock$p(this.this$0).currentTimeMillis();
|
|
SharedPreferences.Editor edit = this.this$0.getPrefsSessionDurable().edit();
|
|
m.checkExpressionValueIsNotNull(edit, "editor");
|
|
edit.putLong("CACHE_KEY_FIRST_USE", currentTimeMillis);
|
|
edit.apply();
|
|
return currentTimeMillis;
|
|
}
|
|
}
|