Fix linting issues
This commit is contained in:
parent
5b38bdb1c1
commit
49d52f9713
1 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
lateinit var database: ServerDatabaseDao
|
lateinit var database: ServerDatabaseDao
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
lateinit var jellyfinRepository: JellyfinRepository;
|
lateinit var jellyfinRepository: JellyfinRepository
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
lateinit var appPreferences: AppPreferences
|
lateinit var appPreferences: AppPreferences
|
||||||
|
@ -193,15 +193,15 @@ class MainActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun testServerConnection() {
|
private fun testServerConnection() {
|
||||||
val activity = this;
|
val activity = this
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
try {
|
try {
|
||||||
jellyfinRepository.getPublicSystemInfo()
|
jellyfinRepository.getPublicSystemInfo()
|
||||||
// Give the UI a chance to load
|
// Give the UI a chance to load
|
||||||
delay(100)
|
delay(100)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
appPreferences.isOffline = true;
|
appPreferences.isOffline = true
|
||||||
activity.restart();
|
activity.restart()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue