what-the-bank/sources/o/mzN.java

123 lines
3.8 KiB
Java

package o;
import android.view.View;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/* loaded from: classes2.dex */
public final class mzN implements GoogleMap.OnInfoWindowClickListener, GoogleMap.OnMarkerClickListener, GoogleMap.OnMarkerDragListener, GoogleMap.InfoWindowAdapter {
final GoogleMap e;
private final Map<String, HBt> d = new HashMap();
final Map<Marker, HBt> b = new HashMap();
public mzN(GoogleMap googleMap) {
this.e = googleMap;
}
@Override // com.google.android.gms.maps.GoogleMap.InfoWindowAdapter
public final View getInfoWindow(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt == null) {
return null;
}
GoogleMap.InfoWindowAdapter infoWindowAdapter = hBt.c;
return null;
}
@Override // com.google.android.gms.maps.GoogleMap.InfoWindowAdapter
public final View getInfoContents(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt == null) {
return null;
}
GoogleMap.InfoWindowAdapter infoWindowAdapter = hBt.c;
return null;
}
@Override // com.google.android.gms.maps.GoogleMap.OnInfoWindowClickListener
public final void onInfoWindowClick(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt == null || hBt.e == null) {
return;
}
hBt.e.onInfoWindowClick(marker);
}
@Override // com.google.android.gms.maps.GoogleMap.OnMarkerClickListener
public final boolean onMarkerClick(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt == null || hBt.b == null) {
return false;
}
return hBt.b.onMarkerClick(marker);
}
@Override // com.google.android.gms.maps.GoogleMap.OnMarkerDragListener
public final void onMarkerDragStart(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt != null) {
GoogleMap.OnMarkerDragListener onMarkerDragListener = hBt.a;
}
}
@Override // com.google.android.gms.maps.GoogleMap.OnMarkerDragListener
public final void onMarkerDrag(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt != null) {
GoogleMap.OnMarkerDragListener onMarkerDragListener = hBt.a;
}
}
@Override // com.google.android.gms.maps.GoogleMap.OnMarkerDragListener
public final void onMarkerDragEnd(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt != null) {
GoogleMap.OnMarkerDragListener onMarkerDragListener = hBt.a;
}
}
public final boolean d(Marker marker) {
HBt hBt = this.b.get(marker);
if (hBt == null || !hBt.d.remove(marker)) {
return false;
}
hBt.g.b.remove(marker);
marker.remove();
return true;
}
/* loaded from: classes2.dex */
public class HBt {
GoogleMap.OnMarkerDragListener a;
public GoogleMap.OnMarkerClickListener b;
GoogleMap.InfoWindowAdapter c;
final Set<Marker> d = new HashSet();
public GoogleMap.OnInfoWindowClickListener e;
final mzN g;
public HBt(mzN mzn) {
this.g = mzn;
}
public final void e() {
for (Marker marker : this.d) {
marker.remove();
this.g.b.remove(marker);
}
this.d.clear();
}
public final Marker b(MarkerOptions markerOptions) {
Marker addMarker = this.g.e.addMarker(markerOptions);
this.d.add(addMarker);
this.g.b.put(addMarker, this);
return addMarker;
}
}
}