From 085b946c7d3df2a7a24183b2949d4bacd5d16c5e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 1 Feb 2020 23:41:44 +0530 Subject: Theming related fixes (#627) * Make navigation match window background Signed-off-by: Harsh Shandilya * Remove light navigation flag Signed-off-by: Harsh Shandilya * Use black navbar in light theme windowLightNavigationBar is not portable across API 23 to 29 so we're better off with this solution Signed-off-by: Harsh Shandilya * Simplify folder dialog title UI Signed-off-by: Harsh Shandilya * Make night theme completely flat Signed-off-by: Harsh Shandilya * Remove unnecessary type Signed-off-by: Harsh Shandilya * Don't try to use non-existent external repo Signed-off-by: Harsh Shandilya Co-authored-by: Aditya Wasan --- app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/utils') diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt index f6ba7d32..06608671 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.kt @@ -145,9 +145,12 @@ open class PasswordRepository protected constructor() { } return if (settings.getBoolean("git_external", false)) { val externalRepo = settings.getString("git_external_repo", null) - File(requireNotNull(externalRepo)) + if (externalRepo != null) + File(externalRepo) + else + File(context.filesDir.toString(), "/store") } else { - File(context.filesDir.toString() + "/store") + File(context.filesDir.toString(), "/store") } } -- cgit v1.2.3