diff options
author | Florian <64581222+fm-sys@users.noreply.github.com> | 2020-12-13 18:34:40 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-12-15 12:29:56 +0300 |
commit | 9e72002893a304705e0e05a02b8af5d1be69d75f (patch) | |
tree | 154b7cd0d57be702fb3a0c7a1fb3f692bf02c5f5 /app/src/main | |
parent | 6daf31e3fa8fca6fbbffacffefa0dda8b4c92a4b (diff) |
fix some lint warnings
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DeckDatabase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DeckDatabase.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DeckDatabase.java index f93446322..ce200bcc1 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DeckDatabase.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DeckDatabase.java @@ -285,7 +285,7 @@ public abstract class DeckDatabase extends RoomDatabase { String colorAsString2 = cursor.getString(5); // textColor @ColorInt int color1; - @ColorInt Integer color2 = null; + @ColorInt int color2; try { color1 = Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(colorAsString1)); color2 = Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(colorAsString2)); @@ -316,7 +316,7 @@ public abstract class DeckDatabase extends RoomDatabase { while (cursor.moveToNext()) { String colorAsString1 = cursor.getString(8); // color - @ColorInt Integer color1 = null; + @ColorInt int color1; try { color1 = Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(colorAsString1)); } catch (Exception e) { @@ -350,7 +350,7 @@ public abstract class DeckDatabase extends RoomDatabase { while (cursor.moveToNext()) { String colorAsString1 = cursor.getString(7); // color - @ColorInt Integer color1 = null; + @ColorInt int color1; try { color1 = Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(colorAsString1)); } catch (Exception e) { |