Skip to content

Commit 75e82fc

Browse files
committed
Fixed an issue where widgets would not respond properly to dark theme changes.
1 parent 6fbbda8 commit 75e82fc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

bitcoin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
applicationId "com.brentpanther.bitcoinwidget"
1414
minSdk 23
1515
targetSdk 34
16-
versionCode 326
17-
versionName "8.5.1"
16+
versionCode 327
17+
versionName "8.5.2"
1818

1919
}
2020

bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ open class WidgetProvider : AppWidgetProvider() {
3333

3434
override fun onAppWidgetOptionsChanged(context: Context, appWidgetManager: AppWidgetManager,
3535
appWidgetId: Int, newOptions: Bundle) {
36-
refreshWidgets(context, appWidgetId)
36+
WidgetUpdater.updateDisplays(context)
37+
}
38+
39+
override fun onUpdate(context: Context, appWidgetManager: AppWidgetManager, appWidgetIds: IntArray) {
40+
WidgetUpdater.updateDisplays(context)
3741
}
3842

3943
override fun onDeleted(context: Context, widgetIds: IntArray) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed an issue where widgets would not respond properly to dark theme changes.

0 commit comments

Comments
 (0)