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