From 56f4b7a7bd0c99c6ff62736a1c277004bb4654e7 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Mon, 2 Dec 2024 21:54:18 +0100 Subject: [PATCH] Cosmetic --- .../main/java/info/hannes/changelog/ChangeLog.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt b/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt index 76df852..8867060 100644 --- a/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt +++ b/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt @@ -26,10 +26,8 @@ import java.util.Collections * ``). */ open class ChangeLog @JvmOverloads constructor( - private val context: Context, preferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context), - /** - * Contains the CSS rules used to format the change log. - */ + private val context: Context, + preferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context), protected val css: String = DEFAULT_CSS ) { @@ -203,9 +201,13 @@ open class ChangeLog @JvmOverloads constructor( val builder = AlertDialog.Builder(context) builder.setTitle( - context.resources.getString(if (full) R.string.changelog_full_title else R.string.changelog_title) - ) - .setView(webView) + context.resources.getString( + if (full) + R.string.changelog_full_title + else + R.string.changelog_title + ) + ) .setView(webView) .setCancelable(false) // OK button .setPositiveButton(