Skip to content

Commit

Permalink
Remove duplicate code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Oct 3, 2023
1 parent ba04033 commit 3390a2d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ internal class InitializationActivity : AppCompatActivity() {
if (manager?.canScheduleExactAlarms() == true) {
tryAuthenticate()
} else {
splashScreenActive = false
setContentView(R.layout.splash)
stopSlashScreen()
alarmDialog()
}
}
Expand All @@ -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))
Expand Down

0 comments on commit 3390a2d

Please sign in to comment.