From 6fbbda8d1dc0d9c8b3fd15d1039647e287feb158 Mon Sep 17 00:00:00 2001 From: Brent Panther Date: Mon, 15 Jan 2024 12:37:16 -0600 Subject: [PATCH] Fixed an issue where not all widgets would regularly update on certain devices. --- bitcoin/build.gradle | 4 ++-- .../java/com/brentpanther/bitcoinwidget/WidgetUpdateWorker.kt | 2 +- fastlane/metadata/android/en-US/changelogs/326.txt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/326.txt diff --git a/bitcoin/build.gradle b/bitcoin/build.gradle index 8a9ca8d6..509df654 100644 --- a/bitcoin/build.gradle +++ b/bitcoin/build.gradle @@ -13,8 +13,8 @@ android { applicationId "com.brentpanther.bitcoinwidget" minSdk 23 targetSdk 34 - versionCode 325 - versionName "8.5.0" + versionCode 326 + versionName "8.5.1" } diff --git a/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetUpdateWorker.kt b/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetUpdateWorker.kt index c9a3b32e..bed61166 100644 --- a/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetUpdateWorker.kt +++ b/bitcoin/src/main/java/com/brentpanther/bitcoinwidget/WidgetUpdateWorker.kt @@ -9,7 +9,7 @@ class WidgetUpdateWorker(context: Context, params: WorkerParameters) : Coroutine override suspend fun doWork(): Result { return try { - WidgetUpdater.update(applicationContext, WidgetApplication.instance.widgetIds, false) + WidgetUpdater.update(applicationContext, WidgetApplication.instance.widgetIds, false).join() Result.success() } catch (e: Exception) { Log.e(TAG, "Exception in worker", e) diff --git a/fastlane/metadata/android/en-US/changelogs/326.txt b/fastlane/metadata/android/en-US/changelogs/326.txt new file mode 100644 index 00000000..127a7d99 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/326.txt @@ -0,0 +1 @@ +Fixed an issue where not all widgets would regularly update on certain devices. \ No newline at end of file