what-the-bank/sources/com/huawei/hms/framework/common/SettingUtil.java

28 lines
887 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.framework.common;
import android.content.ContentResolver;
import android.provider.Settings;
/* loaded from: classes2.dex */
public class SettingUtil {
private static final String TAG = "SettingUtil";
public static int getSystemInt(ContentResolver contentResolver, String str, int i) {
try {
return Settings.System.getInt(contentResolver, str, i);
} catch (RuntimeException e) {
Logger.e(TAG, "Settings System getInt throwFromSystemServer:", e);
return i;
}
}
public static int getSecureInt(ContentResolver contentResolver, String str, int i) {
try {
return Settings.Secure.getInt(contentResolver, str, i);
} catch (RuntimeException e) {
Logger.e(TAG, "Settings Secure getInt throwFromSystemServer:", e);
return i;
}
}
}