Skip to content

Commit

Permalink
Fix an issue preventing the widget from being created on certain devi…
Browse files Browse the repository at this point in the history
…ces.
  • Loading branch information
hwki committed Dec 17, 2022
1 parent 1c820cb commit 60dd555
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bitcoin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.brentpanther.bitcoinwidget"
minSdk 23
targetSdk 33
versionCode 316
versionName "8.3.6"
versionCode 317
versionName "8.3.7"

javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.brentpanther.bitcoinwidget.ui.settings

import android.app.Activity
import android.app.Activity.RESULT_OK
import android.appwidget.AppWidgetManager
import android.content.Intent
import android.graphics.Typeface
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
Expand Down Expand Up @@ -85,9 +86,10 @@ fun BaseSettingsScreen(
navController.navigateUp()
} else {
(context as Activity).apply {
setResult(RESULT_OK)
WidgetProvider.refreshWidgets(this)
val resultIntent = Intent().putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId)
setResult(Activity.RESULT_OK, resultIntent)
finish()
WidgetProvider.refreshWidgets(this)
}
}
},
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/317.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix an issue preventing the widget from being created on certain devices.

0 comments on commit 60dd555

Please sign in to comment.