mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 16:22:31 -08:00
fix: Small bugs
This commit is contained in:
1 parent
24b3758545
commit
085941019e
4 files changed
+29
-24
No files matched your search
@@ -22,6 +22,8 @@ package com.kunzisoft.keepass.settings
|
||||
import android.app.Activity
|
||||
import android.app.backup.BackupManager
|
||||
import android.content.Intent
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import android.view.MenuItem
|
||||
@@ -62,6 +64,12 @@ open class SettingsActivity
|
||||
|
||||
coordinatorLayout = findViewById(R.id.toolbar_coordinator)
|
||||
toolbar = findViewById(R.id.toolbar)
|
||||
lockView = findViewById(R.id.lock_button)
|
||||
|
||||
// To apply navigation bar with background color
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
|
||||
this.window.navigationBarColor = Color.TRANSPARENT
|
||||
}
|
||||
|
||||
mExternalFileHelper = ExternalFileHelper(this)
|
||||
mExternalFileHelper?.buildOpenDocument { selectedFileUri ->
|
||||
@@ -107,7 +115,6 @@ open class SettingsActivity
|
||||
setSupportActionBar(toolbar)
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
|
||||
lockView = findViewById(R.id.lock_button)
|
||||
lockView?.setOnClickListener {
|
||||
lockAndExit()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user