mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Ensure we only send ReceiveFirstIntent once (#701)
This commit is contained in:
parent
ffba00bf83
commit
99f5325580
1 changed files with 7 additions and 5 deletions
|
@ -32,11 +32,13 @@ class MainActivity : AppCompatActivity() {
|
||||||
installSplashScreen().setKeepOnScreenCondition { shouldShowSplashScreen }
|
installSplashScreen().setKeepOnScreenCondition { shouldShowSplashScreen }
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
|
||||||
mainViewModel.trySendAction(
|
if (savedInstanceState == null) {
|
||||||
MainAction.ReceiveFirstIntent(
|
mainViewModel.trySendAction(
|
||||||
intent = intent,
|
MainAction.ReceiveFirstIntent(
|
||||||
),
|
intent = intent,
|
||||||
)
|
),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// Within the app the language will change dynamically and will be managed
|
// Within the app the language will change dynamically and will be managed
|
||||||
// by the OS, but we need to ensure we properly set the language when
|
// by the OS, but we need to ensure we properly set the language when
|
||||||
|
|
Loading…
Reference in a new issue