app: don't use non-null assertion for supportActionBar
This commit is contained in:
parent
eb1ed0bbd1
commit
822b4db83f
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ class PasswordStore : BaseGitActivity() {
|
|||
|
||||
model.currentDir.observe(this) { dir ->
|
||||
val basePath = PasswordRepository.getRepositoryDirectory().absoluteFile
|
||||
supportActionBar!!.apply {
|
||||
supportActionBar?.apply {
|
||||
if (dir != basePath) title = dir.name else setTitle(R.string.app_name)
|
||||
}
|
||||
}
|
||||
|
@ -611,7 +611,7 @@ class PasswordStore : BaseGitActivity() {
|
|||
model.forceRefresh()
|
||||
} else {
|
||||
model.reset()
|
||||
supportActionBar!!.setDisplayHomeAsUpEnabled(false)
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue