46 lines
1.5 KiB
Java
46 lines
1.5 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Resources;
|
|
import android.os.Build;
|
|
import android.view.ViewConfiguration;
|
|
import com.google.firebase.crashlytics.internal.common.AbstractSpiCall;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class fRw {
|
|
public static float sQ_(ViewConfiguration viewConfiguration, Context context) {
|
|
return HBt.sT_(viewConfiguration);
|
|
}
|
|
|
|
public static float sR_(ViewConfiguration viewConfiguration, Context context) {
|
|
return HBt.sU_(viewConfiguration);
|
|
}
|
|
|
|
public static boolean sS_(ViewConfiguration viewConfiguration, Context context) {
|
|
if (Build.VERSION.SDK_INT >= 28) {
|
|
return RVV.sV_(viewConfiguration);
|
|
}
|
|
Resources resources = context.getResources();
|
|
int identifier = resources.getIdentifier("config_showMenuShortcutsWhenKeyboardPresent", "bool", AbstractSpiCall.ANDROID_CLIENT_TYPE);
|
|
return identifier != 0 && resources.getBoolean(identifier);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class HBt {
|
|
static float sT_(ViewConfiguration viewConfiguration) {
|
|
return viewConfiguration.getScaledHorizontalScrollFactor();
|
|
}
|
|
|
|
static float sU_(ViewConfiguration viewConfiguration) {
|
|
return viewConfiguration.getScaledVerticalScrollFactor();
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class RVV {
|
|
static boolean sV_(ViewConfiguration viewConfiguration) {
|
|
return viewConfiguration.shouldShowMenuShortcutsWhenKeyboardPresent();
|
|
}
|
|
}
|
|
}
|