diff options
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/api/JsonToEntityParser.java | 2 | ||||
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/api/LastSyncUtil.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/api/JsonToEntityParser.java b/app/src/main/java/it/niedermann/nextcloud/deck/api/JsonToEntityParser.java index 2443a919c..b2af80f88 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/api/JsonToEntityParser.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/api/JsonToEntityParser.java @@ -641,7 +641,7 @@ public class JsonToEntityParser { Label label = new Label(); makeTraceableIfFails(() -> { label.setId(e.get("id").getAsLong()); - //todo: last modified! + // TODO last modified! // label.setLastModified(get); label.setTitle(getNullAsEmptyString(e.get("title"))); label.setEtag(getNullAsNull(e.get("ETag"))); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/api/LastSyncUtil.java b/app/src/main/java/it/niedermann/nextcloud/deck/api/LastSyncUtil.java index 1492d78ac..4c5da96a9 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/api/LastSyncUtil.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/api/LastSyncUtil.java @@ -3,6 +3,8 @@ package it.niedermann.nextcloud.deck.api; import android.content.Context; import android.content.SharedPreferences; +import androidx.annotation.NonNull; + import java.time.Instant; import it.niedermann.nextcloud.deck.R; @@ -11,10 +13,10 @@ public class LastSyncUtil { private static final String LAST_SYNC_KEY = "lS_"; private static LastSyncUtil INSTANCE; - private SharedPreferences lastSyncPref; + private final SharedPreferences lastSyncPref; - private LastSyncUtil(Context applicationContext) { + private LastSyncUtil(@NonNull Context applicationContext) { lastSyncPref = applicationContext.getSharedPreferences( applicationContext.getString(R.string.shared_preference_last_sync), Context.MODE_PRIVATE |