Files
rr3-apk/decompiled-community/sources/com/google/android/gms/common/internal/ViewUtils.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

44 lines
1.8 KiB
Java

package com.google.android.gms.common.internal;
import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepForSdk;
@KeepForSdk
/* loaded from: classes2.dex */
public class ViewUtils {
private ViewUtils() {
}
@Nullable
@KeepForSdk
public static String getXmlAttributeString(@NonNull String str, @NonNull String str2, @NonNull Context context, @NonNull AttributeSet attributeSet, boolean z, boolean z2, @NonNull String str3) {
String attributeValue = attributeSet == null ? null : attributeSet.getAttributeValue(str, str2);
if (attributeValue != null && attributeValue.startsWith("@string/") && z) {
String substring = attributeValue.substring(8);
String packageName = context.getPackageName();
TypedValue typedValue = new TypedValue();
try {
context.getResources().getValue(packageName + ":string/" + substring, typedValue, true);
} catch (Resources.NotFoundException unused) {
Log.w(str3, "Could not find resource for " + str2 + ": " + attributeValue);
}
CharSequence charSequence = typedValue.string;
if (charSequence != null) {
attributeValue = charSequence.toString();
} else {
Log.w(str3, "Resource " + str2 + " was not a string: " + typedValue.toString());
}
}
if (z2 && attributeValue == null) {
Log.w(str3, "Required XML attribute \"" + str2 + "\" missing");
}
return attributeValue;
}
}