Skip to content

Commit 520c8a1

Browse files
committed
chore: review
1 parent 046fd61 commit 520c8a1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

app/src/main/java/to/bitkit/ui/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class MainActivity : FragmentActivity() {
9191
val consumedLaunchIntent = savedInstanceState?.getString(KEY_CONSUMED_LAUNCH_INTENT)
9292
val currentLaunchIntent = intent.launchKey()
9393
if (currentLaunchIntent == null || currentLaunchIntent != consumedLaunchIntent) {
94-
appViewModel.handleLaunchIntent(intent)
94+
appViewModel.handleDeeplinkIntent(intent)
9595
}
9696

9797
installSplashScreen()
@@ -207,7 +207,7 @@ class MainActivity : FragmentActivity() {
207207
override fun onNewIntent(intent: Intent) {
208208
super.onNewIntent(intent)
209209
setIntent(intent)
210-
appViewModel.handleLaunchIntent(intent)
210+
appViewModel.handleDeeplinkIntent(intent)
211211
}
212212

213213
override fun onSaveInstanceState(outState: Bundle) {

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,8 +2683,6 @@ class AppViewModel @Inject constructor(
26832683
}
26842684
}
26852685

2686-
fun handleLaunchIntent(intent: Intent) = handleDeeplinkIntent(intent)
2687-
26882686
fun clearPendingPubkyImport() {
26892687
viewModelScope.launch {
26902688
pubkyRepo.clearPendingImport()

0 commit comments

Comments
 (0)