53 lines
1.6 KiB
Java
53 lines
1.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.Configuration;
|
||
|
import android.content.res.Resources;
|
||
|
import android.content.res.TypedArray;
|
||
|
import o.SYO;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class AuZ {
|
||
|
public Context c;
|
||
|
|
||
|
public AuZ(Context context) {
|
||
|
this.c = context;
|
||
|
}
|
||
|
|
||
|
public final int d() {
|
||
|
Configuration configuration = this.c.getResources().getConfiguration();
|
||
|
int i = configuration.screenWidthDp;
|
||
|
int i2 = configuration.screenHeightDp;
|
||
|
if (configuration.smallestScreenWidthDp > 600 || i > 600) {
|
||
|
return 5;
|
||
|
}
|
||
|
if (i > 960 && i2 > 720) {
|
||
|
return 5;
|
||
|
}
|
||
|
if (i > 720 && i2 > 960) {
|
||
|
return 5;
|
||
|
}
|
||
|
if (i >= 500) {
|
||
|
return 4;
|
||
|
}
|
||
|
if (i > 640 && i2 > 480) {
|
||
|
return 4;
|
||
|
}
|
||
|
if (i <= 480 || i2 <= 640) {
|
||
|
return i >= 360 ? 3 : 2;
|
||
|
}
|
||
|
return 4;
|
||
|
}
|
||
|
|
||
|
public final int b() {
|
||
|
TypedArray obtainStyledAttributes = this.c.obtainStyledAttributes(null, SYO.ZqN.ActionBar, SYO.IeS.actionBarStyle, 0);
|
||
|
int layoutDimension = obtainStyledAttributes.getLayoutDimension(SYO.ZqN.ActionBar_height, 0);
|
||
|
Resources resources = this.c.getResources();
|
||
|
if (!this.c.getResources().getBoolean(SYO.LWm.abc_action_bar_embed_tabs)) {
|
||
|
layoutDimension = Math.min(layoutDimension, resources.getDimensionPixelSize(SYO.Sts.abc_action_bar_stacked_max_height));
|
||
|
}
|
||
|
obtainStyledAttributes.recycle();
|
||
|
return layoutDimension;
|
||
|
}
|
||
|
}
|