Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Dec 3, 2024
1 parent bab8a8c commit 56f4b7a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ import java.util.Collections
* `</style>`).
*/
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
) {

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 56f4b7a

Please sign in to comment.