[android] Removed useless condition.

This commit is contained in:
velichkomarija 2020-11-12 16:02:20 +03:00 committed by Alexander Boriskov
parent 25a10d116f
commit f65677bc6d

View file

@ -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();