- 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
80 lines
3.3 KiB
Java
80 lines
3.3 KiB
Java
package androidx.credentials.playservices;
|
|
|
|
import android.app.Activity;
|
|
import android.app.PendingIntent;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.os.ResultReceiver;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.playservices.controllers.CredentialProviderBaseController;
|
|
import com.unity3d.services.UnityAdsConstants;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
/* loaded from: classes.dex */
|
|
public class IdentityCredentialApiHiddenActivity extends Activity {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final String KEY_AWAITING_RESULT = "androidx.credentials.playservices.AWAITING_RESULT";
|
|
private boolean mWaitingForActivityResult;
|
|
private ResultReceiver resultReceiver;
|
|
|
|
@Override // android.app.Activity
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
overridePendingTransition(0, 0);
|
|
ResultReceiver resultReceiver = (ResultReceiver) getIntent().getParcelableExtra(CredentialProviderBaseController.RESULT_RECEIVER_TAG);
|
|
this.resultReceiver = resultReceiver;
|
|
if (resultReceiver == null) {
|
|
finish();
|
|
}
|
|
restoreState(bundle);
|
|
if (this.mWaitingForActivityResult) {
|
|
return;
|
|
}
|
|
PendingIntent pendingIntent = (PendingIntent) getIntent().getParcelableExtra(CredentialProviderBaseController.EXTRA_GET_CREDENTIAL_INTENT);
|
|
if (pendingIntent != null) {
|
|
startIntentSenderForResult(pendingIntent.getIntentSender(), CredentialProviderBaseController.Companion.getCONTROLLER_REQUEST_CODE$credentials_play_services_auth_release(), null, 0, 0, 0, null);
|
|
return;
|
|
}
|
|
ResultReceiver resultReceiver2 = this.resultReceiver;
|
|
if (resultReceiver2 != null) {
|
|
CredentialProviderBaseController.Companion.reportError$credentials_play_services_auth_release(resultReceiver2, CredentialProviderBaseController.GET_UNKNOWN, UnityAdsConstants.Messages.MSG_INTERNAL_ERROR);
|
|
}
|
|
finish();
|
|
}
|
|
|
|
private final void restoreState(Bundle bundle) {
|
|
if (bundle != null) {
|
|
this.mWaitingForActivityResult = bundle.getBoolean(KEY_AWAITING_RESULT, false);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onSaveInstanceState(Bundle outState) {
|
|
Intrinsics.checkNotNullParameter(outState, "outState");
|
|
outState.putBoolean(KEY_AWAITING_RESULT, this.mWaitingForActivityResult);
|
|
super.onSaveInstanceState(outState);
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onActivityResult(int i, int i2, Intent intent) {
|
|
super.onActivityResult(i, i2, intent);
|
|
ResultReceiver resultReceiver = this.resultReceiver;
|
|
if (resultReceiver != null) {
|
|
CredentialProviderBaseController.Companion.reportResult$credentials_play_services_auth_release(resultReceiver, i, i2, intent);
|
|
}
|
|
this.mWaitingForActivityResult = false;
|
|
finish();
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|