forked from organicmaps/organicmaps-tmp
[android] Removed useless condition.
This commit is contained in:
parent
25a10d116f
commit
f65677bc6d
1 changed files with 2 additions and 3 deletions
|
@ -107,9 +107,8 @@ public class LocationUtils
|
|||
final ContentResolver resolver = MwmApplication.get().getContentResolver();
|
||||
try
|
||||
{
|
||||
return Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT
|
||||
? !TextUtils.isEmpty(Settings.Secure.getString(resolver, Settings.Secure.LOCATION_PROVIDERS_ALLOWED))
|
||||
: Settings.Secure.getInt(resolver, Settings.Secure.LOCATION_MODE) != Settings.Secure.LOCATION_MODE_OFF;
|
||||
return Settings.Secure.getInt(resolver, Settings.Secure.LOCATION_MODE)
|
||||
!= Settings.Secure.LOCATION_MODE_OFF;
|
||||
} catch (Settings.SettingNotFoundException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Add table
Reference in a new issue