@@ -0,0 +1,1365 @@
+package com.lithiumsheep.jacketapp.models;%0A%0Aimport android.content.Context;%0Aimport android.content.SharedPreferences;%0Aimport android.location.Location;%0A%0Apublic class LocationCache %7B%0A%0A    private static final String LOCATION_CACHE = %22location_cache%22;%0A%0A    private static final String LAT = %22lat%22;%0A    private static final String LON = %22lon%22;%0A%0A    private final SharedPreferences prefs;%0A%0A    private Location lastLocation = null;%0A%0A    public LocationCache(Context context) %7B%0A        prefs = context.getSharedPreferences(LOCATION_CACHE, Context.MODE_PRIVATE);%0A    %7D%0A%0A    public Location load() %7B%0A        String lat = prefs.getString(LAT, null);%0A        String lon = prefs.getString(LON, null);%0A        if (lat != null && lon != null) %7B%0A            lastLocation = new Location(LOCATION_CACHE);%0A            lastLocation.setLatitude(Double.valueOf(lat));%0A            lastLocation.setLongitude(Double.valueOf(lon));%0A        %7D%0A        return lastLocation;%0A%0A    %7D%0A%0A    public void save(Location location) %7B%0A        lastLocation = location;%0A        prefs.edit()%0A                .putString(LAT, String.valueOf(location.getLatitude()))%0A                .putString(LON, String.valueOf(location.getLongitude()))%0A                .apply();%0A    %7D%0A%0A    public void clear() %7B%0A        lastLocation = null;%0A        prefs.edit()%0A                .clear()%0A                .apply();%0A    %7D%0A%7D%0A

Add first concept of LocationCache