正在查看: Kahramaa v15.23.3 应用的 GoogleMapPlacePicker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kahramaa v15.23.3 应用的 GoogleMapPlacePicker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.qa.kahramaa.kahramaa.googleplacepicker;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.location.Location;
import android.os.Bundle;
import android.os.RemoteException;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import androidx.activity.x;
import b0.a;
import com.google.android.gms.common.api.internal.LifecycleCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.qa.kahramaa.kahramaa.googleplacepicker.GoogleMapPlacePicker;
import f6.i;
import g.h;
import h5.a;
import i5.l;
import java.lang.ref.WeakReference;
import l5.m;
import n6.a;
import n6.d;
import t1.q;
import w6.f;
import w6.k;
import w6.r;
import w6.y;
import x4.l;
public class GoogleMapPlacePicker extends h implements n6.c {
public static final int S = 0;
public n6.a K;
public p6.b L;
public Button M;
public Double N;
public Double O;
public ImageView P;
public ImageView Q;
public m6.a R;
public class a implements a.InterfaceC0172a {
public a() {
}
}
public class b implements a.d {
public b() {
}
}
public class c implements f<Location> {
public c() {
}
@Override
public final void c(Location location) {
Location location2 = location;
if (location2 != null) {
GoogleMapPlacePicker.this.N = Double.valueOf(location2.getLatitude());
GoogleMapPlacePicker.this.O = Double.valueOf(location2.getLongitude());
GoogleMapPlacePicker.this.K.b(q8.b.t(new LatLng(GoogleMapPlacePicker.this.N.doubleValue(), GoogleMapPlacePicker.this.O.doubleValue()), 15.0f));
}
}
}
public static q v(Context context) {
Object obj = b0.a.f2230a;
Drawable b10 = a.c.b(context, 2131231125);
b10.setBounds(0, 0, b10.getIntrinsicWidth(), b10.getIntrinsicHeight());
Bitmap createBitmap = Bitmap.createBitmap(b10.getIntrinsicWidth(), b10.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
b10.draw(new Canvas(createBitmap));
if (createBitmap == null) {
throw new NullPointerException("image must not be null");
}
try {
i iVar = x.f903p;
m.j(iVar, "IBitmapDescriptorFactory is not initialized");
return new q(iVar.K(createBitmap));
} catch (RemoteException e10) {
throw new r1.c(e10);
}
}
@Override
public final void b(n6.a aVar) {
this.K = aVar;
if (this.N.doubleValue() == 0.0d && this.O.doubleValue() == 0.0d) {
y();
} else {
this.K.b(q8.b.t(new LatLng(this.N.doubleValue(), this.O.doubleValue()), 15.0f));
}
n6.a aVar2 = this.K;
a aVar3 = new a();
aVar2.getClass();
try {
aVar2.f10739a.b0(new n6.m(aVar3));
this.M.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GoogleMapPlacePicker googleMapPlacePicker = GoogleMapPlacePicker.this;
int i10 = GoogleMapPlacePicker.S;
googleMapPlacePicker.x();
}
});
this.P.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GoogleMapPlacePicker googleMapPlacePicker = GoogleMapPlacePicker.this;
int i10 = GoogleMapPlacePicker.S;
googleMapPlacePicker.finish();
}
});
this.Q.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GoogleMapPlacePicker googleMapPlacePicker = GoogleMapPlacePicker.this;
int i10 = GoogleMapPlacePicker.S;
googleMapPlacePicker.w();
}
});
n6.a aVar4 = this.K;
l lVar = new l(this);
aVar4.getClass();
try {
aVar4.f10739a.L(new n6.l(lVar));
n6.a aVar5 = this.K;
b bVar = new b();
aVar5.getClass();
try {
aVar5.f10739a.e0(new d(bVar));
} catch (RemoteException e10) {
throw new r1.c(e10);
}
} catch (RemoteException e11) {
throw new r1.c(e11);
}
} catch (RemoteException e12) {
throw new r1.c(e12);
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131492892);
h5.a<a.c.C0130c> aVar = m6.b.f10553a;
this.R = new m6.a(this);
SupportMapFragment supportMapFragment = (SupportMapFragment) q().z(2131297207);
this.M = (Button) findViewById(2131296434);
this.P = (ImageView) findViewById(2131296396);
this.Q = (ImageView) findViewById(2131296552);
this.N = Double.valueOf(getIntent().getDoubleExtra("latitude", 0.0d));
this.O = Double.valueOf(getIntent().getDoubleExtra("longitude", 0.0d));
supportMapFragment.p0(this);
}
@Override
public final void onRequestPermissionsResult(int i10, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i10, strArr, iArr);
if (i10 == 1) {
if (iArr.length == 2 && iArr[0] == 0) {
w();
} else {
y();
}
}
}
public final void w() {
w6.x xVar;
if (b0.a.a(this, "android.permission.ACCESS_FINE_LOCATION") != 0 && b0.a.a(this, "android.permission.ACCESS_COARSE_LOCATION") != 0) {
a0.a.c(this, new String[]{"android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"}, 1);
return;
}
m6.a aVar = this.R;
aVar.getClass();
l.a aVar2 = new l.a();
aVar2.f8475a = new q(3, aVar);
aVar2.f8478d = 2414;
y b10 = aVar.b(0, aVar2.a());
c cVar = new c();
b10.getClass();
r rVar = new r(k.f14994a, cVar);
b10.f15022b.a(rVar);
i5.f b11 = LifecycleCallback.b(this);
synchronized (b11) {
xVar = (w6.x) b11.f(w6.x.class, "TaskOnStopCallback");
if (xVar == null) {
xVar = new w6.x(b11);
}
}
synchronized (xVar.f15020o) {
xVar.f15020o.add(new WeakReference(rVar));
}
b10.t();
}
public final void x() {
p6.b bVar = this.L;
bVar.getClass();
try {
Double valueOf = Double.valueOf(bVar.f11619a.i().f2980n);
p6.b bVar2 = this.L;
bVar2.getClass();
try {
Double valueOf2 = Double.valueOf(bVar2.f11619a.i().f2981o);
Intent intent = new Intent();
intent.putExtra("latitude", valueOf + "");
intent.putExtra("longitude", valueOf2 + "");
setResult(-1, intent);
finish();
} catch (RemoteException e10) {
throw new r1.c(e10);
}
} catch (RemoteException e11) {
throw new r1.c(e11);
}
}
public final void y() {
LatLng latLng = new LatLng(25.3311d, 51.22029d);
n6.a aVar = this.K;
p6.c cVar = new p6.c();
cVar.m0(latLng);
cVar.f11621o = " ";
cVar.q = v(getApplicationContext());
this.L = aVar.a(cVar);
this.K.b(q8.b.t(latLng, 9.5f));
}
}