From ae9c092997227a8fa1103bf3f00e7116eff1b43b Mon Sep 17 00:00:00 2001 From: Andy Scherzinger <info@andy-scherzinger.de> Date: Tue, 5 Dec 2023 16:29:33 +0100 Subject: [PATCH] ktlint: A comment in a 'value_argument_list' is only allowed when placed on a separate line Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de> --- app/src/main/java/com/nextcloud/talk/utils/DateUtils.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/utils/DateUtils.kt b/app/src/main/java/com/nextcloud/talk/utils/DateUtils.kt index 6f94209e2..af5c3f600 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/DateUtils.kt +++ b/app/src/main/java/com/nextcloud/talk/utils/DateUtils.kt @@ -37,14 +37,17 @@ class DateUtils(val context: Context) { /* date formatter in local timezone and locale */ private var format: DateFormat = DateFormat.getDateTimeInstance( - DateFormat.DEFAULT, // dateStyle - DateFormat.SHORT, // timeStyle + // dateStyle + DateFormat.DEFAULT, + // timeStyle + DateFormat.SHORT, context.resources.configuration.locales[0] ) /* date formatter in local timezone and locale */ private var formatTime: DateFormat = DateFormat.getTimeInstance( - DateFormat.SHORT, // timeStyle + // timeStyle + DateFormat.SHORT, context.resources.configuration.locales[0] )