diff options
author | Stefan Niedermann <info@niedermann.it> | 2024-01-21 11:51:23 +0300 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-01-21 18:08:10 +0300 |
commit | 42d56e470f652bde1853cb256b0a643ba73c4263 (patch) | |
tree | 8f680b49a68f15016745f2b6a2dc82c282886cf9 /app/src/main/java/it/niedermann/owncloud/notes/persistence | |
parent | 189f54fcd0833105fc277757ba366f4da0bd9dea (diff) |
chore(deps): Update dependencies and fix API changes
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/owncloud/notes/persistence')
2 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_20_21.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_20_21.java index 32ede8b1..db681f1b 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_20_21.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_20_21.java @@ -113,13 +113,13 @@ public final class Migration_20_21 extends Migration { values.put("MODIFIED", cursor.getLong(COLUMN_POSITION_MODIFIED) * 1_000); values.put("APIVERSION", cursor.getString(COLUMN_POSITION_API_VERSION)); try { - values.put("COLOR", Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(cursor.getString(COLUMN_POSITION_COLOR)))); + values.put("COLOR", Color.parseColor(ColorUtil.formatColorToParsableHexString(cursor.getString(COLUMN_POSITION_COLOR)))); } catch (Exception e) { e.printStackTrace(); values.put("COLOR", -16743735); } try { - values.put("TEXTCOLOR", Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(cursor.getString(COLUMN_POSITION_TEXT_COLOR)))); + values.put("TEXTCOLOR", Color.parseColor(ColorUtil.formatColorToParsableHexString(cursor.getString(COLUMN_POSITION_TEXT_COLOR)))); } catch (Exception e) { e.printStackTrace(); values.put("TEXTCOLOR", -16777216); diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/CapabilitiesDeserializer.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/CapabilitiesDeserializer.java index e3b268ab..3d422c50 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/CapabilitiesDeserializer.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/sync/CapabilitiesDeserializer.java @@ -51,14 +51,14 @@ public class CapabilitiesDeserializer implements JsonDeserializer<Capabilities> final var theming = capabilities.getAsJsonObject(CAPABILITIES_THEMING); if (theming.has(CAPABILITIES_THEMING_COLOR)) { try { - response.setColor(Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(theming.get(CAPABILITIES_THEMING_COLOR).getAsString()))); + response.setColor(Color.parseColor(ColorUtil.formatColorToParsableHexString(theming.get(CAPABILITIES_THEMING_COLOR).getAsString()))); } catch (Exception e) { e.printStackTrace(); } } if (theming.has(CAPABILITIES_THEMING_COLOR_TEXT)) { try { - response.setTextColor(Color.parseColor(ColorUtil.INSTANCE.formatColorToParsableHexString(theming.get(CAPABILITIES_THEMING_COLOR_TEXT).getAsString()))); + response.setTextColor(Color.parseColor(ColorUtil.formatColorToParsableHexString(theming.get(CAPABILITIES_THEMING_COLOR_TEXT).getAsString()))); } catch (Exception e) { e.printStackTrace(); } |