Skip to content

Instantly share code, notes, and snippets.

View hdani9307's full-sized avatar

Daniel Hoffmann hdani9307

View GitHub Profile
/* renamed from: f */
public void m6309f() {
if (VERSION.SDK_INT >= 23) {
GlobalApp.m5981b();
if (GlobalApp.m5984d(this.f5603e)) {
if (C1390a.m6238a(this.f5603e, "android.permission.ACCESS_FINE_LOCATION")) {
startActivity(new Intent(this.f5603e, WIFIListActivity.class));
return;
}
if (C1390a.m6239a((Fragment) this, "android.permission.WRITE_EXTERNAL_STORAGE")) {
/* renamed from: d */
public static boolean m5984d(Context context) {
return ((LocationManager) context.getSystemService("location")).isProviderEnabled("gps");
}
.method public static d(Landroid/content/Context;)Z
.locals 2
const/4 v0, 0x1
:goto_0
return v0
goto :goto_0
.end method
.method public static d(Landroid/content/Context;)Z
.locals 2
const-string v0, "location"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/location/LocationManager;