what-the-bank/sources/com/google/android/gms/internal/gtm/zzeu.java

37 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes.dex */
public class zzeu {
private static String zzahj;
private static Map<String, String> zzahk = new HashMap();
public static String zze(Context context, String str) {
if (zzahj == null) {
synchronized (zzeu.class) {
if (zzahj == null) {
SharedPreferences sharedPreferences = context.getSharedPreferences("gtm_install_referrer", 0);
zzahj = sharedPreferences != null ? sharedPreferences.getString("referrer", "") : "";
}
}
}
return zze(zzahj, str);
}
public static String zze(String str, String str2) {
if (str2 == null) {
if (str.length() > 0) {
return str;
}
return null;
}
String valueOf = String.valueOf(str);
return Uri.parse(valueOf.length() != 0 ? "http://hostname/?".concat(valueOf) : new String("http://hostname/?")).getQueryParameter(str2);
}
}