package com.google.android.gms.flags.impl; import android.content.SharedPreferences; import android.util.Log; /* loaded from: classes2.dex */ public final class zzh extends zza { public static String zza(SharedPreferences sharedPreferences, String str, String str2) { try { return (String) com.google.android.gms.internal.flags.zze.zza(new zzi(sharedPreferences, str, str2)); } catch (Exception e) { String valueOf = String.valueOf(e.getMessage()); Log.w("FlagDataUtils", valueOf.length() != 0 ? "Flag value not available, returning default: ".concat(valueOf) : new String("Flag value not available, returning default: ")); return str2; } } }