Skip to content

Commit 98c6495

Browse files
committed
Fix blank page on app activity restore
1 parent 6779bfe commit 98c6495

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ android {
1919
compileSdk compile_sdk_version
2020
minSdkVersion min_sdk_version
2121
targetSdkVersion compile_sdk_version
22-
versionCode 122
23-
versionName "0.41.0"
22+
versionCode 124
23+
versionName "0.41.1"
2424
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2525

2626
ksp {

app/src/main/java/io/horizontalsystems/bankwallet/modules/main/MainFragment.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.horizontalsystems.bankwallet.modules.main
22

3+
import android.content.Intent
34
import android.os.Bundle
45
import androidx.activity.OnBackPressedCallback
56
import androidx.activity.compose.BackHandler
@@ -86,7 +87,8 @@ class MainFragment : BaseComposeFragment() {
8687
)
8788
} ?: run {
8889
// Back stack entry doesn't exist, restart activity
89-
requireActivity().recreate()
90+
val intent = Intent(context, MainActivity::class.java)
91+
requireActivity().startActivity(intent)
9092
}
9193
}
9294

0 commit comments

Comments
 (0)