41 lines
993 B
Java
41 lines
993 B
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.content.SharedPreferences;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzbi {
|
|
private final String a;
|
|
private boolean b;
|
|
private String c;
|
|
private final /* synthetic */ zzbd d;
|
|
|
|
public zzbi(zzbd zzbdVar, String str, String str2) {
|
|
this.d = zzbdVar;
|
|
Preconditions.b(str);
|
|
this.a = str;
|
|
}
|
|
|
|
public final String a() {
|
|
SharedPreferences B;
|
|
if (!this.b) {
|
|
this.b = true;
|
|
B = this.d.B();
|
|
this.c = B.getString(this.a, null);
|
|
}
|
|
return this.c;
|
|
}
|
|
|
|
public final void a(String str) {
|
|
SharedPreferences B;
|
|
if (zzfy.e(str, this.c)) {
|
|
return;
|
|
}
|
|
B = this.d.B();
|
|
SharedPreferences.Editor edit = B.edit();
|
|
edit.putString(this.a, str);
|
|
edit.apply();
|
|
this.c = str;
|
|
}
|
|
}
|