- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
1.4 KiB
Java
37 lines
1.4 KiB
Java
package com.google.android.gms.common;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Context;
|
|
import android.os.Looper;
|
|
import android.os.Message;
|
|
import android.util.Log;
|
|
import com.google.android.gms.internal.base.zau;
|
|
|
|
@SuppressLint({"HandlerLeak"})
|
|
/* loaded from: classes2.dex */
|
|
final class zad extends zau {
|
|
final /* synthetic */ GoogleApiAvailability zaa;
|
|
private final Context zab;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public zad(GoogleApiAvailability googleApiAvailability, Context context) {
|
|
super(Looper.myLooper() == null ? Looper.getMainLooper() : Looper.myLooper());
|
|
this.zaa = googleApiAvailability;
|
|
this.zab = context.getApplicationContext();
|
|
}
|
|
|
|
@Override // android.os.Handler
|
|
public final void handleMessage(Message message) {
|
|
int i = message.what;
|
|
if (i != 1) {
|
|
Log.w("GoogleApiAvailability", "Don't know how to handle this message: " + i);
|
|
return;
|
|
}
|
|
GoogleApiAvailability googleApiAvailability = this.zaa;
|
|
int isGooglePlayServicesAvailable = googleApiAvailability.isGooglePlayServicesAvailable(this.zab);
|
|
if (googleApiAvailability.isUserResolvableError(isGooglePlayServicesAvailable)) {
|
|
this.zaa.showErrorNotification(this.zab, isGooglePlayServicesAvailable);
|
|
}
|
|
}
|
|
}
|