- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
44 lines
1.4 KiB
Java
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());
|
|
}
|
|
}
|
|
}
|
|
}
|