Fix type cast error in location util

This commit is contained in:
estevez-dev
2020-07-08 10:54:41 +03:00
parent 819dfc725d
commit e5fe853f0b
3 changed files with 7 additions and 4 deletions

View File

@ -38,7 +38,7 @@ class LocationUtils {
static final long MIN_WORKER_LOCATION_UPDATE_INTERVAL_MS = 900000; //15 minutes
static int getLocationUpdatesState(Context context) {
return context.getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE).getInt(KEY_REQUESTING_LOCATION_UPDATES, LOCATION_UPDATES_DISABLED);
return (int) context.getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE).getInt(KEY_REQUESTING_LOCATION_UPDATES, LOCATION_UPDATES_DISABLED);
}
static long getLocationUpdateIntervals(Context context) {