From 36b80fcbbf180af892b5a100d33a3595b7912a8f Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Thu, 7 May 2020 09:08:33 -0500 Subject: [PATCH] Fix some build warnings --- app/src/googleplay/java/org/tasks/analytics/Firebase.kt | 2 +- app/src/main/java/org/tasks/data/TaskAttachment.kt | 2 +- app/src/main/res/values/keys.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/googleplay/java/org/tasks/analytics/Firebase.kt b/app/src/googleplay/java/org/tasks/analytics/Firebase.kt index 6c3300c0a..21dda29df 100644 --- a/app/src/googleplay/java/org/tasks/analytics/Firebase.kt +++ b/app/src/googleplay/java/org/tasks/analytics/Firebase.kt @@ -69,7 +69,7 @@ class Firebase @Inject constructor(@ForApplication val context: Context, prefere init { if (enabled) { - analytics = FirebaseAnalytics.getInstance(context!!) + analytics = FirebaseAnalytics.getInstance(context) analytics?.setAnalyticsCollectionEnabled(true) Fabric.with(context, Crashlytics()) remoteConfig = FirebaseRemoteConfig.getInstance() diff --git a/app/src/main/java/org/tasks/data/TaskAttachment.kt b/app/src/main/java/org/tasks/data/TaskAttachment.kt index a34523344..a469bf078 100644 --- a/app/src/main/java/org/tasks/data/TaskAttachment.kt +++ b/app/src/main/java/org/tasks/data/TaskAttachment.kt @@ -47,7 +47,7 @@ class TaskAttachment { } fun convertPathUri() { - setUri(Uri.fromFile(File(uri)).toString()) + setUri(Uri.fromFile(File(uri!!)).toString()) } fun parseUri(): Uri? { diff --git a/app/src/main/res/values/keys.xml b/app/src/main/res/values/keys.xml index 08143f868..2ff9cded7 100644 --- a/app/src/main/res/values/keys.xml +++ b/app/src/main/res/values/keys.xml @@ -348,7 +348,7 @@ https://tasks.org/subscribe disable_subtasks wearable_notifications - notified_oauth_error_%s_%s + notified_oauth_error_%1$s_%2$s chip_style chip_appearance desaturate_colors