mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Database Info
This commit is contained in:
@@ -67,11 +67,13 @@ abstract class DatabaseActivity : StylishActivity(), DatabaseRetrieval {
|
|||||||
}
|
}
|
||||||
|
|
||||||
is DatabaseViewModel.ActionState.OnDatabaseInfoChanged -> {
|
is DatabaseViewModel.ActionState.OnDatabaseInfoChanged -> {
|
||||||
showDatabaseChangedDialog(
|
if (manageDatabaseInfo()) {
|
||||||
uiState.previousDatabaseInfo,
|
showDatabaseChangedDialog(
|
||||||
uiState.newDatabaseInfo,
|
uiState.previousDatabaseInfo,
|
||||||
uiState.readOnlyDatabase
|
uiState.newDatabaseInfo,
|
||||||
)
|
uiState.readOnlyDatabase
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is DatabaseViewModel.ActionState.OnDatabaseActionRequested -> {
|
is DatabaseViewModel.ActionState.OnDatabaseActionRequested -> {
|
||||||
@@ -132,6 +134,8 @@ abstract class DatabaseActivity : StylishActivity(), DatabaseRetrieval {
|
|||||||
// optional method implementation
|
// optional method implementation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open fun manageDatabaseInfo(): Boolean = true
|
||||||
|
|
||||||
override fun onDatabaseActionFinished(
|
override fun onDatabaseActionFinished(
|
||||||
database: ContextualDatabase,
|
database: ContextualDatabase,
|
||||||
actionTask: String,
|
actionTask: String,
|
||||||
|
|||||||
@@ -37,13 +37,11 @@ class HardwareKeyActivity: DatabaseModeActivity(){
|
|||||||
mHardwareKeyLauncherViewModel.manageSelectionResult(it)
|
mHardwareKeyLauncherViewModel.manageSelectionResult(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun applyCustomStyle(): Boolean {
|
override fun applyCustomStyle(): Boolean = false
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun showDatabaseDialog(): Boolean {
|
override fun showDatabaseDialog(): Boolean = false
|
||||||
return false
|
|
||||||
}
|
override fun manageDatabaseInfo(): Boolean = false
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
|||||||
Reference in New Issue
Block a user