Skip to content

Commit 60dd555

Browse files
committed
Fix an issue preventing the widget from being created on certain devices.
1 parent 1c820cb commit 60dd555

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

bitcoin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
applicationId "com.brentpanther.bitcoinwidget"
1313
minSdk 23
1414
targetSdk 33
15-
versionCode 316
16-
versionName "8.3.6"
15+
versionCode 317
16+
versionName "8.3.7"
1717

1818
javaCompileOptions {
1919
annotationProcessorOptions {

bitcoin/src/main/java/com/brentpanther/bitcoinwidget/ui/settings/SettingsScreen.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package com.brentpanther.bitcoinwidget.ui.settings
22

33
import android.app.Activity
4-
import android.app.Activity.RESULT_OK
4+
import android.appwidget.AppWidgetManager
5+
import android.content.Intent
56
import android.graphics.Typeface
67
import androidx.compose.foundation.layout.*
78
import androidx.compose.foundation.rememberScrollState
@@ -85,9 +86,10 @@ fun BaseSettingsScreen(
8586
navController.navigateUp()
8687
} else {
8788
(context as Activity).apply {
88-
setResult(RESULT_OK)
89-
WidgetProvider.refreshWidgets(this)
89+
val resultIntent = Intent().putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId)
90+
setResult(Activity.RESULT_OK, resultIntent)
9091
finish()
92+
WidgetProvider.refreshWidgets(this)
9193
}
9294
}
9395
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix an issue preventing the widget from being created on certain devices.

0 commit comments

Comments
 (0)