jimu-decompiled/sources/com/yanzhenjie/permission/checker/LocationCoarseTest.java
2025-05-13 19:24:51 +02:00

22 lines
697 B
Java

package com.yanzhenjie.permission.checker;
import android.content.Context;
import android.location.LocationManager;
/* loaded from: classes2.dex */
class LocationCoarseTest implements PermissionTest {
private Context a;
LocationCoarseTest(Context context) {
this.a = context;
}
@Override // com.yanzhenjie.permission.checker.PermissionTest
public boolean a() throws Throwable {
if (!((LocationManager) this.a.getSystemService("location")).getProviders(true).contains("network") && this.a.getPackageManager().hasSystemFeature("android.hardware.location.network")) {
return !r0.isProviderEnabled("network");
}
return true;
}
}