From ebc9788f5c9d51268c890337b94f3e5a77f6d94d Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Wed, 4 Dec 2024 16:59:37 +0100 Subject: [PATCH] Fix rare flickering --- ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt b/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt index 0afad3b..7e8279f 100644 --- a/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt +++ b/ChangeLogLib/src/main/java/info/hannes/changelog/ChangeLog.kt @@ -5,6 +5,8 @@ import android.content.Context import android.content.SharedPreferences import android.content.pm.PackageManager.NameNotFoundException import android.os.Build +import android.os.Handler +import android.os.Looper import android.preference.PreferenceManager import android.util.Log import android.util.SparseArray @@ -216,7 +218,7 @@ open class ChangeLog @JvmOverloads constructor( // Show "Moreā€¦" button if we're only displaying a partial change log. builder.setNegativeButton( R.string.changelog_show_full - ) { _, _ -> fullLogDialog.show() } + ) { _, _ -> Handler(Looper.getMainLooper()).post{fullLogDialog.show()} } } return builder.create()