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 -> {
|
||||
showDatabaseChangedDialog(
|
||||
uiState.previousDatabaseInfo,
|
||||
uiState.newDatabaseInfo,
|
||||
uiState.readOnlyDatabase
|
||||
)
|
||||
if (manageDatabaseInfo()) {
|
||||
showDatabaseChangedDialog(
|
||||
uiState.previousDatabaseInfo,
|
||||
uiState.newDatabaseInfo,
|
||||
uiState.readOnlyDatabase
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
is DatabaseViewModel.ActionState.OnDatabaseActionRequested -> {
|
||||
@@ -132,6 +134,8 @@ abstract class DatabaseActivity : StylishActivity(), DatabaseRetrieval {
|
||||
// optional method implementation
|
||||
}
|
||||
|
||||
open fun manageDatabaseInfo(): Boolean = true
|
||||
|
||||
override fun onDatabaseActionFinished(
|
||||
database: ContextualDatabase,
|
||||
actionTask: String,
|
||||
|
||||
@@ -37,13 +37,11 @@ class HardwareKeyActivity: DatabaseModeActivity(){
|
||||
mHardwareKeyLauncherViewModel.manageSelectionResult(it)
|
||||
}
|
||||
|
||||
override fun applyCustomStyle(): Boolean {
|
||||
return false
|
||||
}
|
||||
override fun applyCustomStyle(): Boolean = false
|
||||
|
||||
override fun showDatabaseDialog(): Boolean {
|
||||
return false
|
||||
}
|
||||
override fun showDatabaseDialog(): Boolean = false
|
||||
|
||||
override fun manageDatabaseInfo(): Boolean = false
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
Reference in New Issue
Block a user