27 lines
836 B
Java
27 lines
836 B
Java
package D;
|
|
|
|
import android.content.Context;
|
|
import android.hardware.display.DisplayManager;
|
|
import android.util.Log;
|
|
import android.view.Display;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class f {
|
|
public static Context a(Context context, String str) {
|
|
return context.createAttributionContext(str);
|
|
}
|
|
|
|
public static String b(Context context) {
|
|
return context.getAttributionTag();
|
|
}
|
|
|
|
public static Display c(Context context) {
|
|
try {
|
|
return context.getDisplay();
|
|
} catch (UnsupportedOperationException unused) {
|
|
Log.w("ContextCompat", "The context:" + context + " is not associated with any display. Return a fallback display instead.");
|
|
return ((DisplayManager) context.getSystemService(DisplayManager.class)).getDisplay(0);
|
|
}
|
|
}
|
|
}
|