mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-30 13:52:58 -08:00
Fix small bugs
This commit is contained in:
1 parent
9bed7bf213
commit
48c2115fdf
2 files changed
+6
-3
No files matched your search
@@ -75,6 +75,7 @@ class FileDatabaseSelectActivity : DatabaseModeActivity(),
|
||||
|
||||
// Views
|
||||
private lateinit var coordinatorLayout: CoordinatorLayout
|
||||
private var specialTitle: View? = null
|
||||
private var createDatabaseButtonView: View? = null
|
||||
private var openDatabaseButtonView: View? = null
|
||||
|
||||
@@ -115,8 +116,7 @@ class FileDatabaseSelectActivity : DatabaseModeActivity(),
|
||||
setSupportActionBar(toolbar)
|
||||
|
||||
// Special title
|
||||
val specialTitle: TextView = findViewById(R.id.file_selection_title_part_3)
|
||||
specialTitle.isVisible = UriUtil.contributingUser(this)
|
||||
specialTitle = findViewById(R.id.file_selection_title_part_3)
|
||||
|
||||
// Create database button
|
||||
createDatabaseButtonView = findViewById(R.id.create_database_button)
|
||||
@@ -341,6 +341,9 @@ class FileDatabaseSelectActivity : DatabaseModeActivity(),
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
|
||||
// Define special title
|
||||
specialTitle?.isVisible = UriUtil.contributingUser(this)
|
||||
|
||||
// Show open and create button or special mode
|
||||
when (mSpecialMode) {
|
||||
SpecialMode.DEFAULT -> {
|
||||
|
||||
Reference in new issue
Block a user