diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingActivity.kt index 0d053de052..e68fcb541a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingActivity.kt @@ -28,6 +28,7 @@ import org.thoughtcrime.securesms.onboarding.messagenotifications.startPNModeAct import org.thoughtcrime.securesms.onboarding.pickname.startPickDisplayNameActivity import org.thoughtcrime.securesms.ui.AppTheme import org.thoughtcrime.securesms.ui.ProgressArc +import org.thoughtcrime.securesms.util.setUpActionBarSessionLogo import javax.inject.Inject private const val EXTRA_MNEMONIC = "mnemonic" @@ -66,6 +67,8 @@ class LoadingActivity: BaseActionBarActivity() { .apply { setContent { LoadingScreen() } } .let(::setContentView) + setUpActionBarSessionLogo(true) + viewModel.restore(application, intent.getByteArrayExtra(EXTRA_MNEMONIC)!!) lifecycleScope.launch { diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingViewModel.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingViewModel.kt index 68bc5cc127..bf50baa736 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingViewModel.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/LoadingViewModel.kt @@ -23,7 +23,6 @@ import org.thoughtcrime.securesms.crypto.KeyPairUtilities import org.thoughtcrime.securesms.dependencies.ConfigFactory import javax.inject.Inject import kotlin.time.Duration -import kotlin.time.Duration.Companion.hours import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds