Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
26
apk_decompiled/sources/D/f.java
Normal file
26
apk_decompiled/sources/D/f.java
Normal file
@@ -0,0 +1,26 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user