discord-jadx/app/src/main/java/c/i/a/f/i/b/h4.java

40 lines
1.0 KiB
Java

package c.i.a.f.i.b;
import android.content.SharedPreferences;
import androidx.annotation.WorkerThread;
import com.airbnb.lottie.parser.AnimatableValueParser;
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class h4 {
public final String a;
public final long b;
/* renamed from: c reason: collision with root package name */
public boolean f1153c;
public long d;
public final /* synthetic */ d4 e;
public h4(d4 d4Var, String str, long j) {
this.e = d4Var;
AnimatableValueParser.w(str);
this.a = str;
this.b = j;
}
@WorkerThread
public final long a() {
if (!this.f1153c) {
this.f1153c = true;
this.d = this.e.w().getLong(this.a, this.b);
}
return this.d;
}
@WorkerThread
public final void b(long j) {
SharedPreferences.Editor edit = this.e.w().edit();
edit.putLong(this.a, j);
edit.apply();
this.d = j;
}
}