Remove duplicate code blocks

This commit is contained in:
Niko Diamadis
2023-10-03 13:07:42 +02:00
parent ba040332b0
commit 3390a2d9f5

View File

@@ -85,8 +85,7 @@ internal class InitializationActivity : AppCompatActivity() {
if (manager?.canScheduleExactAlarms() == true) { if (manager?.canScheduleExactAlarms() == true) {
tryAuthenticate() tryAuthenticate()
} else { } else {
splashScreenActive = false stopSlashScreen()
setContentView(R.layout.splash)
alarmDialog() alarmDialog()
} }
} }
@@ -110,8 +109,7 @@ internal class InitializationActivity : AppCompatActivity() {
} }
private fun failed(exception: ApiException) { private fun failed(exception: ApiException) {
splashScreenActive = false stopSlashScreen()
setContentView(R.layout.splash)
when (exception.code) { when (exception.code) {
0 -> { 0 -> {
dialog(getString(R.string.not_available, settings.url)) dialog(getString(R.string.not_available, settings.url))