31 lines
1.0 KiB
Java
31 lines
1.0 KiB
Java
package o;
|
|
|
|
import android.location.Location;
|
|
import com.google.android.gms.common.api.GoogleApiClient;
|
|
import com.google.android.gms.location.LocationServices;
|
|
import o.guC;
|
|
|
|
/* renamed from: o.guy, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15593guy extends guu<Location> {
|
|
public static AbstractC13163fSk<Location> d(guw guwVar, guC guc) {
|
|
return AbstractC13163fSk.create(new C15593guy(guwVar)).compose(new guC.HBt(guc.a.a));
|
|
}
|
|
|
|
private C15593guy(guw guwVar) {
|
|
super(guwVar);
|
|
}
|
|
|
|
@Override // o.AbstractC15591guv
|
|
public final void b(GoogleApiClient googleApiClient, InterfaceC13168fSp<? super Location> interfaceC13168fSp) {
|
|
Location lastLocation = LocationServices.FusedLocationApi.getLastLocation(googleApiClient);
|
|
if (interfaceC13168fSp.isDisposed()) {
|
|
return;
|
|
}
|
|
if (lastLocation != null) {
|
|
interfaceC13168fSp.e(lastLocation);
|
|
}
|
|
interfaceC13168fSp.c();
|
|
}
|
|
}
|