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
|
||||
|
||||
@Inject
|
||||
lateinit var jellyfinRepository: JellyfinRepository;
|
||||
lateinit var jellyfinRepository: JellyfinRepository
|
||||
|
||||
@Inject
|
||||
lateinit var appPreferences: AppPreferences
|
||||
|
@ -193,15 +193,15 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
private fun testServerConnection() {
|
||||
val activity = this;
|
||||
val activity = this
|
||||
lifecycleScope.launch {
|
||||
try {
|
||||
jellyfinRepository.getPublicSystemInfo()
|
||||
// Give the UI a chance to load
|
||||
delay(100)
|
||||
} catch (e: Exception) {
|
||||
appPreferences.isOffline = true;
|
||||
activity.restart();
|
||||
appPreferences.isOffline = true
|
||||
activity.restart()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue