From 98c64950a518221b3bcbf2822d1f42678d39db65 Mon Sep 17 00:00:00 2001 From: Rafael Date: Mon, 16 Dec 2024 14:57:57 +0600 Subject: [PATCH] Fix blank page on app activity restore --- app/build.gradle | 4 ++-- .../horizontalsystems/bankwallet/modules/main/MainFragment.kt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 95d1fa733a..f642235f19 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,8 +19,8 @@ android { compileSdk compile_sdk_version minSdkVersion min_sdk_version targetSdkVersion compile_sdk_version - versionCode 122 - versionName "0.41.0" + versionCode 124 + versionName "0.41.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ksp { diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/main/MainFragment.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/main/MainFragment.kt index 368f31cb3f..1dc3027535 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/main/MainFragment.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/main/MainFragment.kt @@ -1,5 +1,6 @@ package io.horizontalsystems.bankwallet.modules.main +import android.content.Intent import android.os.Bundle import androidx.activity.OnBackPressedCallback import androidx.activity.compose.BackHandler @@ -86,7 +87,8 @@ class MainFragment : BaseComposeFragment() { ) } ?: run { // Back stack entry doesn't exist, restart activity - requireActivity().recreate() + val intent = Intent(context, MainActivity::class.java) + requireActivity().startActivity(intent) } }