// Path: app/src/main/java/net/fabiszewski/ulogger/LoggerTask.java
// static final int E_DISABLED = 2;
// 
// Path: app/src/main/java/net/fabiszewski/ulogger/LoggerTask.java
// static final int E_PERMISSION = 1;
// 
// Path: app/src/main/java/net/fabiszewski/ulogger/MainActivity.java
// public final static String UPDATED_PREFS = "extra_updated_prefs";


import static net.fabiszewski.ulogger.LoggerTask.E_DISABLED;
import static net.fabiszewski.ulogger.LoggerTask.E_PERMISSION;
import static net.fabiszewski.ulogger.MainActivity.UPDATED_PREFS;
import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.HandlerThread;
import android.os.IBinder;
import android.os.Looper;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager;
            return lastLocation.getElapsedRealtimeNanos() / 1000000;
        }
        return 0;
    }

    /**
     * Reset last location update
     */
    public static void resetLastLocation() {
        lastLocation = null;
    }

    /**
     * Send broadcast message
     * @param broadcast Broadcast message
     */
    private void sendBroadcast(String broadcast) {
        Intent intent = new Intent(broadcast);
        sendBroadcast(intent);
    }

    /**
     * Location listener class
     */
    private class mLocationListener implements LocationListener {

        /**
         * Callback on location update
         * @param location Location
         */
// Path: app/src/main/java/net/fabiszewski/ulogger/LoggerTask.java
// static final int E_DISABLED = 2;
// 
// Path: app/src/main/java/net/fabiszewski/ulogger/LoggerTask.java
// static final int E_PERMISSION = 1;
// 
// Path: app/src/main/java/net/fabiszewski/ulogger/MainActivity.java
// public final static String UPDATED_PREFS = "extra_updated_prefs";


// Path: app/src/main/java/net/fabiszewski/ulogger/LoggerService.java
import static net.fabiszewski.ulogger.LoggerTask.E_DISABLED;
import static net.fabiszewski.ulogger.LoggerTask.E_PERMISSION;
import static net.fabiszewski.ulogger.MainActivity.UPDATED_PREFS;
import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.HandlerThread;
import android.os.IBinder;
import android.os.Looper;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.preference.PreferenceManager;

            return lastLocation.getElapsedRealtimeNanos() / 1000000;
        }
        return 0;
    }

    /**
     * Reset last location update
     */
    public static void resetLastLocation() {
        lastLocation = null;
    }

    /**
     * Send broadcast message
     * @param broadcast Broadcast message
     */
    private void sendBroadcast(String broadcast) {
        Intent intent = new Intent(broadcast);
        sendBroadcast(intent);
    }

    /**
     * Location listener class
     */
    private class mLocationListener implements LocationListener {

        /**
         * Callback on location update
         * @param location Location
         */
        @Override