Commit 17f3db60 authored by Bartek Fabiszewski's avatar Bartek Fabiszewski
Browse files

Location preferences should be reread before running task in case user modified app settings

parent 21f10b1c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ class LoggerTask implements LocationListener, Runnable {
    public void run() {
        if (Logger.DEBUG) { Log.d(TAG, "[task run]"); }
        isRunning = true;
        locationHelper.updatePreferences();
        Location location = doInBackground();
        if (!isCancelled) {
            uiHandler.post(() -> onPostExecute(location));