From 75e82fc7612d77ae7c2bb413b45caee282a175d2 Mon Sep 17 00:00:00 2001 From: Brent Panther Date: Sun, 21 Jan 2024 08:34:56 -0600 Subject: [PATCH] Fixed an issue where widgets would not respond properly to dark theme changes. --- bitcoin/build.gradle | 4 ++-- .../java/com/brentpanther/bitcoinwidget/WidgetProvider.kt | 6 +++++- fastlane/metadata/android/en-US/changelogs/327.txt | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/327.txt diff --git a/bitcoin/build.gradle b/bitcoin/build.gradle index 509df65..031832c 100644 --- a/bitcoin/build.gradle +++ b/bitcoin/build.gradle @@ -13,8 +13,8 @@ android { applicationId "com.brentpanther.bitcoinwidget" minSdk 23 targetSdk 34 - versionCode 326 - versionName "8.5.1" + versionCode 327 + versionName "8.5.2" } diff --git a/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetProvider.kt b/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetProvider.kt index 68a8f6a..1dbfa64 100644 --- a/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetProvider.kt +++ b/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetProvider.kt @@ -33,7 +33,11 @@ open class WidgetProvider : AppWidgetProvider() { override fun onAppWidgetOptionsChanged(context: Context, appWidgetManager: AppWidgetManager, appWidgetId: Int, newOptions: Bundle) { - refreshWidgets(context, appWidgetId) + WidgetUpdater.updateDisplays(context) + } + + override fun onUpdate(context: Context, appWidgetManager: AppWidgetManager, appWidgetIds: IntArray) { + WidgetUpdater.updateDisplays(context) } override fun onDeleted(context: Context, widgetIds: IntArray) { diff --git a/fastlane/metadata/android/en-US/changelogs/327.txt b/fastlane/metadata/android/en-US/changelogs/327.txt new file mode 100644 index 0000000..e91cb6d --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/327.txt @@ -0,0 +1 @@ +Fixed an issue where widgets would not respond properly to dark theme changes. \ No newline at end of file