Files
rr3-apk/decompiled/sources/com/fyber/inneractive/sdk/activities/InneractiveBaseActivity.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

44 lines
1.4 KiB
Java

package com.fyber.inneractive.sdk.activities;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.window.OnBackInvokedDispatcher;
import androidx.annotation.Nullable;
import com.fyber.inneractive.sdk.util.IAlog;
/* loaded from: classes2.dex */
public class InneractiveBaseActivity extends Activity {
@Nullable
public b a;
@Override // android.app.Activity
public void onCreate(@Nullable Bundle bundle) {
OnBackInvokedDispatcher onBackInvokedDispatcher;
super.onCreate(bundle);
if (Build.VERSION.SDK_INT >= 33) {
this.a = new b(this);
onBackInvokedDispatcher = getOnBackInvokedDispatcher();
onBackInvokedDispatcher.registerOnBackInvokedCallback(0, this.a);
}
}
@Override // android.app.Activity
public void onDestroy() {
OnBackInvokedDispatcher onBackInvokedDispatcher;
super.onDestroy();
if (Build.VERSION.SDK_INT >= 33) {
try {
if (this.a != null) {
onBackInvokedDispatcher = getOnBackInvokedDispatcher();
onBackInvokedDispatcher.unregisterOnBackInvokedCallback(this.a);
this.a = null;
}
} catch (Exception e) {
IAlog.f("failed to unregisterOnBackInvokedCallback with error: %s", e.getMessage());
}
}
}
}