- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Build;
|
|
import android.view.Window;
|
|
import android.view.WindowInsets;
|
|
import android.view.WindowInsetsController;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class l implements hu {
|
|
private WeakReference<Activity> a;
|
|
|
|
public l(Activity activity) {
|
|
this.a = new WeakReference<>(activity);
|
|
}
|
|
|
|
@Override // com.ironsource.hu
|
|
public void a() {
|
|
WindowInsetsController windowInsetsController;
|
|
int statusBars;
|
|
Activity activity = this.a.get();
|
|
if (activity == null) {
|
|
return;
|
|
}
|
|
int i = Build.VERSION.SDK_INT;
|
|
Window window = activity.getWindow();
|
|
if (i < 30) {
|
|
window.setFlags(1024, 1024);
|
|
return;
|
|
}
|
|
windowInsetsController = window.getDecorView().getWindowInsetsController();
|
|
if (windowInsetsController != null) {
|
|
statusBars = WindowInsets.Type.statusBars();
|
|
windowInsetsController.hide(statusBars);
|
|
}
|
|
}
|
|
}
|