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; } }