Remove duplicate code blocks
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user