fix lint warnings

pull/250/head
Kevin Hester 2021-02-21 12:07:53 +08:00
rodzic 64cfa8675a
commit 3ec0c5fd32
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ fun getInitials(nameIn: String): String {
return initials.take(nchars)
}
class UIViewModel(app: Application) : AndroidViewModel(app), Logging {
class UIViewModel(private val app: Application) : AndroidViewModel(app), Logging {
private val repository: PacketRepository
@ -84,7 +84,7 @@ class UIViewModel(app: Application) : AndroidViewModel(app), Logging {
context.getSharedPreferences("ui-prefs", Context.MODE_PRIVATE)
}
private val context = app.applicationContext
private val context: Context get() = app.applicationContext
var actionBarMenu: Menu? = null