aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-11-01 10:15:33 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-11-03 15:07:01 +0530
commit822b4db83fe76ae192f857e146c45d718508c902 (patch)
tree019a4c7c58b4df361bc1952ca990a5164e192261 /app/src/main
parenteb1ed0bbd1f6381c96a22eabd9362d41c76692cf (diff)
app: don't use non-null assertion for supportActionBar
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/dev/msfjarvis/aps/ui/passwords/PasswordStore.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/ui/passwords/PasswordStore.kt b/app/src/main/java/dev/msfjarvis/aps/ui/passwords/PasswordStore.kt
index ba1e4ac6..74c46ef6 100644
--- a/app/src/main/java/dev/msfjarvis/aps/ui/passwords/PasswordStore.kt
+++ b/app/src/main/java/dev/msfjarvis/aps/ui/passwords/PasswordStore.kt
@@ -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)
}
}