diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt
index 27b0af396..b8665fff6 100644
--- a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt
@@ -953,19 +953,27 @@ class GroupActivity : LockingActivity(),
private const val SEARCH_FRAGMENT_TAG = "SEARCH_FRAGMENT_TAG"
private const val OLD_GROUP_TO_UPDATE_KEY = "OLD_GROUP_TO_UPDATE_KEY"
- private fun buildAndLaunchIntent(context: Context, group: Group?, readOnly: Boolean,
- intentBuildLauncher: (Intent) -> Unit) {
- val checkTime = if (context is Activity)
- TimeoutHelper.checkTimeAndLockIfTimeout(context)
- else
- TimeoutHelper.checkTime(context)
- if (checkTime) {
- val intent = Intent(context, GroupActivity::class.java)
- if (group != null) {
- intent.putExtra(GROUP_ID_KEY, group.nodeId)
- }
- ReadOnlyHelper.putReadOnlyInIntent(intent, readOnly)
- intentBuildLauncher.invoke(intent)
+ private fun buildIntent(context: Context, group: Group?, readOnly: Boolean,
+ intentBuildLauncher: (Intent) -> Unit) {
+ val intent = Intent(context, GroupActivity::class.java)
+ if (group != null) {
+ intent.putExtra(GROUP_ID_KEY, group.nodeId)
+ }
+ ReadOnlyHelper.putReadOnlyInIntent(intent, readOnly)
+ intentBuildLauncher.invoke(intent)
+ }
+
+ private fun checkTimeAndBuildIntent(activity: Activity, group: Group?, readOnly: Boolean,
+ intentBuildLauncher: (Intent) -> Unit) {
+ if (TimeoutHelper.checkTimeAndLockIfTimeout(activity)) {
+ buildIntent(activity, group, readOnly, intentBuildLauncher)
+ }
+ }
+
+ private fun checkTimeAndBuildIntent(context: Context, group: Group?, readOnly: Boolean,
+ intentBuildLauncher: (Intent) -> Unit) {
+ if (TimeoutHelper.checkTime(context)) {
+ buildIntent(context, group, readOnly, intentBuildLauncher)
}
}
@@ -977,8 +985,7 @@ class GroupActivity : LockingActivity(),
@JvmOverloads
fun launch(context: Context, readOnly: Boolean = PreferencesUtil.enableReadOnlyDatabase(context)) {
- TimeoutHelper.recordTime(context)
- buildAndLaunchIntent(context, null, readOnly) { intent ->
+ checkTimeAndBuildIntent(context, null, readOnly) { intent ->
context.startActivity(intent)
}
}
@@ -991,8 +998,7 @@ class GroupActivity : LockingActivity(),
// TODO implement pre search to directly open the direct group
fun launchForKeyboardSelection(context: Context, readOnly: Boolean) {
- TimeoutHelper.recordTime(context)
- buildAndLaunchIntent(context, null, readOnly) { intent ->
+ checkTimeAndBuildIntent(context, null, readOnly) { intent ->
EntrySelectionHelper.startActivityForEntrySelection(context, intent)
}
}
@@ -1006,8 +1012,7 @@ class GroupActivity : LockingActivity(),
@RequiresApi(api = Build.VERSION_CODES.O)
fun launchForAutofillResult(activity: Activity, assistStructure: AssistStructure, readOnly: Boolean) {
- TimeoutHelper.recordTime(activity)
- buildAndLaunchIntent(activity, null, readOnly) { intent ->
+ checkTimeAndBuildIntent(activity, null, readOnly) { intent ->
AutofillHelper.startActivityForAutofillResult(activity, intent, assistStructure)
}
}
diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/lock/LockingActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/lock/LockingActivity.kt
index 9fa070262..9a79a16fc 100644
--- a/app/src/main/java/com/kunzisoft/keepass/activities/lock/LockingActivity.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/activities/lock/LockingActivity.kt
@@ -20,11 +20,7 @@
package com.kunzisoft.keepass.activities.lock
import android.app.Activity
-import android.app.NotificationManager
-import android.content.BroadcastReceiver
-import android.content.Context
import android.content.Intent
-import android.content.IntentFilter
import android.os.Bundle
import android.util.Log
import android.view.View
@@ -34,12 +30,9 @@ import com.kunzisoft.keepass.activities.helpers.ReadOnlyHelper
import com.kunzisoft.keepass.activities.stylish.StylishActivity
import com.kunzisoft.keepass.database.action.ProgressDialogThread
import com.kunzisoft.keepass.database.element.Database
-import com.kunzisoft.keepass.notifications.KeyboardEntryNotificationService
-import com.kunzisoft.keepass.magikeyboard.MagikIME
-import com.kunzisoft.keepass.notifications.ClipboardEntryNotificationService
import com.kunzisoft.keepass.settings.PreferencesUtil
import com.kunzisoft.keepass.timeout.TimeoutHelper
-import com.kunzisoft.keepass.utils.LOCK_ACTION
+import com.kunzisoft.keepass.utils.*
abstract class LockingActivity : StylishActivity() {
@@ -81,12 +74,10 @@ abstract class LockingActivity : StylishActivity() {
}
if (mTimeoutEnable) {
- mLockReceiver = LockReceiver()
- val intentFilter = IntentFilter().apply {
- addAction(Intent.ACTION_SCREEN_OFF)
- addAction(LOCK_ACTION)
+ mLockReceiver = LockReceiver {
+ lockAndExit()
}
- registerReceiver(mLockReceiver, intentFilter)
+ registerLockReceiver(mLockReceiver)
}
mExitLock = false
@@ -151,26 +142,8 @@ abstract class LockingActivity : StylishActivity() {
}
override fun onDestroy() {
+ unregisterLockReceiver(mLockReceiver)
super.onDestroy()
- if (mLockReceiver != null)
- unregisterReceiver(mLockReceiver)
- }
-
- inner class LockReceiver : BroadcastReceiver() {
-
- override fun onReceive(context: Context, intent: Intent) {
- // If allowed, lock and exit
- if (!TimeoutHelper.temporarilyDisableTimeout) {
- intent.action?.let {
- when (it) {
- Intent.ACTION_SCREEN_OFF -> if (PreferencesUtil.isLockDatabaseWhenScreenShutOffEnable(this@LockingActivity)) {
- lockAndExit()
- }
- LOCK_ACTION -> lockAndExit()
- }
- }
- }
- }
}
protected fun lockAndExit() {
@@ -208,20 +181,8 @@ abstract class LockingActivity : StylishActivity() {
}
fun Activity.lock() {
- // Stop the Magikeyboard service
- stopService(Intent(this, KeyboardEntryNotificationService::class.java))
- MagikIME.removeEntry(this)
+ closeDatabase()
- // Stop the notification service
- stopService(Intent(this, ClipboardEntryNotificationService::class.java))
-
- Log.i(Activity::class.java.name, "Shutdown " + localClassName +
- " after inactivity or manual lock")
- (getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).apply {
- cancelAll()
- }
- // Clear data
- Database.getInstance().closeAndClear(applicationContext.filesDir)
// Add onActivityForResult response
setResult(LockingActivity.RESULT_EXIT_LOCK)
finish()
diff --git a/app/src/main/java/com/kunzisoft/keepass/database/action/LoadDatabaseRunnable.kt b/app/src/main/java/com/kunzisoft/keepass/database/action/LoadDatabaseRunnable.kt
index d584f1bbb..9f1ab2475 100644
--- a/app/src/main/java/com/kunzisoft/keepass/database/action/LoadDatabaseRunnable.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/database/action/LoadDatabaseRunnable.kt
@@ -86,8 +86,11 @@ class LoadDatabaseRunnable(private val context: Context,
.addOrUpdateCipherDatabase(cipherDatabaseEntity) // return value not called
}
+ // Register the current time to init the lock timer
+ PreferencesUtil.saveCurrentTime(context)
+
// Start the opening notification
- DatabaseOpenNotificationService.startIfAllowed(context)
+ DatabaseOpenNotificationService.start(context)
} else {
mDatabase.closeAndClear(cacheDirectory)
}
diff --git a/app/src/main/java/com/kunzisoft/keepass/notifications/DatabaseOpenNotificationService.kt b/app/src/main/java/com/kunzisoft/keepass/notifications/DatabaseOpenNotificationService.kt
index 43b7fb035..6a8811e81 100644
--- a/app/src/main/java/com/kunzisoft/keepass/notifications/DatabaseOpenNotificationService.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/notifications/DatabaseOpenNotificationService.kt
@@ -26,8 +26,9 @@ import android.os.Build
import com.kunzisoft.keepass.R
import com.kunzisoft.keepass.activities.GroupActivity
import com.kunzisoft.keepass.database.element.Database
-import com.kunzisoft.keepass.settings.PreferencesUtil
+import com.kunzisoft.keepass.timeout.TimeoutHelper
import com.kunzisoft.keepass.utils.LOCK_ACTION
+import com.kunzisoft.keepass.utils.closeDatabase
class DatabaseOpenNotificationService: LockNotificationService() {
@@ -36,8 +37,14 @@ class DatabaseOpenNotificationService: LockNotificationService() {
private fun stopNotificationAndSendLock() {
// Send lock action
sendBroadcast(Intent(LOCK_ACTION))
- // Stop the service
- stopSelf()
+ }
+
+ override fun actionOnLock() {
+ closeDatabase()
+ // Remove the lock timer (no more needed if it exists)
+ TimeoutHelper.cancelLockTimer(this)
+ // Service is stopped after receive the broadcast
+ super.actionOnLock()
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
@@ -60,7 +67,7 @@ class DatabaseOpenNotificationService: LockNotificationService() {
val database = Database.getInstance()
if (database.loaded) {
- notificationManager?.notify(notificationId, buildNewNotification().apply {
+ startForeground(notificationId, buildNewNotification().apply {
setSmallIcon(R.drawable.notification_ic_database_open)
setContentTitle(getString(R.string.database_opened))
setContentText(database.name + " (" + database.version + ")")
@@ -80,9 +87,11 @@ class DatabaseOpenNotificationService: LockNotificationService() {
companion object {
const val ACTION_CLOSE_DATABASE = "ACTION_CLOSE_DATABASE"
- fun startIfAllowed(context: Context) {
- if (PreferencesUtil.isPersistentNotificationEnable(context)) {
- // Start the opening notification
+ fun start(context: Context) {
+ // Start the opening notification, keep it active to receive lock
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
+ context.startForegroundService(Intent(context, DatabaseOpenNotificationService::class.java))
+ } else {
context.startService(Intent(context, DatabaseOpenNotificationService::class.java))
}
}
diff --git a/app/src/main/java/com/kunzisoft/keepass/notifications/LockNotificationService.kt b/app/src/main/java/com/kunzisoft/keepass/notifications/LockNotificationService.kt
index d447aac18..1fc914311 100644
--- a/app/src/main/java/com/kunzisoft/keepass/notifications/LockNotificationService.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/notifications/LockNotificationService.kt
@@ -19,31 +19,28 @@
*/
package com.kunzisoft.keepass.notifications
-import android.content.BroadcastReceiver
-import android.content.Context
import android.content.Intent
-import android.content.IntentFilter
-import com.kunzisoft.keepass.utils.LOCK_ACTION
+import com.kunzisoft.keepass.utils.LockReceiver
+import com.kunzisoft.keepass.utils.registerLockReceiver
+import com.kunzisoft.keepass.utils.unregisterLockReceiver
abstract class LockNotificationService : NotificationService() {
- private var lockBroadcastReceiver: BroadcastReceiver? = null
+ private var mLockReceiver: LockReceiver? = null
+
+ protected open fun actionOnLock() {
+ // Stop the service in all cases
+ stopSelf()
+ }
override fun onCreate() {
super.onCreate()
// Register a lock receiver to stop notification service when lock on keyboard is performed
- lockBroadcastReceiver = object : BroadcastReceiver() {
- override fun onReceive(context: Context?, intent: Intent?) {
- // Stop the service in all cases
- stopSelf()
- }
+ mLockReceiver = LockReceiver {
+ actionOnLock()
}
- registerReceiver(lockBroadcastReceiver,
- IntentFilter().apply {
- addAction(LOCK_ACTION)
- }
- )
+ registerLockReceiver(mLockReceiver)
}
protected fun stopTask(task: Thread?) {
@@ -59,7 +56,7 @@ abstract class LockNotificationService : NotificationService() {
override fun onDestroy() {
- unregisterReceiver(lockBroadcastReceiver)
+ unregisterLockReceiver(mLockReceiver)
super.onDestroy()
}
diff --git a/app/src/main/java/com/kunzisoft/keepass/settings/PreferencesUtil.kt b/app/src/main/java/com/kunzisoft/keepass/settings/PreferencesUtil.kt
index e2c4f5140..badb90ea2 100644
--- a/app/src/main/java/com/kunzisoft/keepass/settings/PreferencesUtil.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/settings/PreferencesUtil.kt
@@ -207,12 +207,6 @@ object PreferencesUtil {
context.resources.getBoolean(R.bool.enable_auto_save_database_default))
}
- fun isPersistentNotificationEnable(context: Context): Boolean {
- val prefs = PreferenceManager.getDefaultSharedPreferences(context)
- return prefs.getBoolean(context.getString(R.string.persistent_notification_key),
- context.resources.getBoolean(R.bool.persistent_notification_default))
- }
-
fun isBiometricUnlockEnable(context: Context): Boolean {
val prefs = PreferenceManager.getDefaultSharedPreferences(context)
return prefs.getBoolean(context.getString(R.string.biometric_unlock_enable_key),
diff --git a/app/src/main/java/com/kunzisoft/keepass/timeout/TimeoutHelper.kt b/app/src/main/java/com/kunzisoft/keepass/timeout/TimeoutHelper.kt
index cb56119f5..67a697f1b 100644
--- a/app/src/main/java/com/kunzisoft/keepass/timeout/TimeoutHelper.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/timeout/TimeoutHelper.kt
@@ -46,53 +46,63 @@ object TimeoutHelper {
private set
private fun getLockPendingIntent(context: Context): PendingIntent {
- return PendingIntent.getBroadcast(context,
+ return PendingIntent.getBroadcast(context.applicationContext,
REQUEST_ID,
Intent(LOCK_ACTION),
PendingIntent.FLAG_CANCEL_CURRENT)
}
/**
- * Record the current time to check it later with checkTime
+ * Start the lock timer by creating an alarm,
+ * if the method is recalled with a previous lock timer pending, the previous one is deleted
*/
- fun recordTime(context: Context) {
- // Record timeout time in case timeout service is killed
- PreferencesUtil.saveCurrentTime(context)
-
+ private fun startLockTimer(context: Context) {
if (Database.getInstance().loaded) {
val timeout = PreferencesUtil.getAppTimeout(context)
-
- // No timeout don't start timeout service
if (timeout != NEVER) {
- val triggerTime = System.currentTimeMillis() + timeout
- val am = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager
- Log.d(TAG, "TimeoutHelper start")
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
- am.setExact(AlarmManager.RTC, triggerTime, getLockPendingIntent(context))
- } else {
- am.set(AlarmManager.RTC, triggerTime, getLockPendingIntent(context))
+ // No timeout don't start timeout service
+ (context.applicationContext.getSystemService(Context.ALARM_SERVICE) as AlarmManager?)?.let { alarmManager ->
+ val triggerTime = System.currentTimeMillis() + timeout
+ Log.d(TAG, "TimeoutHelper start")
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
+ alarmManager.setExact(AlarmManager.RTC, triggerTime, getLockPendingIntent(context))
+ } else {
+ alarmManager.set(AlarmManager.RTC, triggerTime, getLockPendingIntent(context))
+ }
}
}
}
}
+ /**
+ * Cancel the lock timer currently pending, useful if lock was triggered by another way
+ */
+ fun cancelLockTimer(context: Context) {
+ (context.applicationContext.getSystemService(Context.ALARM_SERVICE) as AlarmManager?)?.let { alarmManager ->
+ Log.d(TAG, "TimeoutHelper cancel")
+ alarmManager.cancel(getLockPendingIntent(context))
+ }
+ }
+
+ /**
+ * Record the current time, to check it later with checkTime and start a new lock timer
+ */
+ fun recordTime(context: Context) {
+ // Record timeout time in case timeout service is killed
+ PreferencesUtil.saveCurrentTime(context)
+ startLockTimer(context)
+ }
+
/**
* Check the time previously record with recordTime and do the [timeoutAction] if timeout
* if temporarilyDisableTimeout() is called, the function as no effect until releaseTemporarilyDisableTimeoutAndCheckTime() is called
- * return 'false' if timeout, 'true' if in time
+ * return 'false' and send broadcast lock action if timeout, 'true' if in time
*/
fun checkTime(context: Context, timeoutAction: (() -> Unit)? = null): Boolean {
// No effect if temporarily disable
if (temporarilyDisableTimeout)
return true
- // Cancel the lock PendingIntent
- if (Database.getInstance().loaded) {
- val am = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager
- Log.d(TAG, "TimeoutHelper cancel")
- am.cancel(getLockPendingIntent(context))
- }
-
// Check whether the timeout has expired
val currentTime = System.currentTimeMillis()
@@ -115,6 +125,7 @@ object TimeoutHelper {
if (diff >= appTimeout) {
// We have timed out
timeoutAction?.invoke()
+ context.sendBroadcast(Intent(LOCK_ACTION))
return false
}
return true
@@ -161,7 +172,7 @@ object TimeoutHelper {
}
if (inTime) {
// Start the opening notification
- DatabaseOpenNotificationService.startIfAllowed(context)
+ DatabaseOpenNotificationService.start(context)
}
return inTime
}
diff --git a/app/src/main/java/com/kunzisoft/keepass/utils/BroadcastAction.kt b/app/src/main/java/com/kunzisoft/keepass/utils/BroadcastAction.kt
index b3f1f4436..c41bbcdd2 100644
--- a/app/src/main/java/com/kunzisoft/keepass/utils/BroadcastAction.kt
+++ b/app/src/main/java/com/kunzisoft/keepass/utils/BroadcastAction.kt
@@ -19,6 +19,19 @@
*/
package com.kunzisoft.keepass.utils
+import android.app.NotificationManager
+import android.content.BroadcastReceiver
+import android.content.Context
+import android.content.Intent
+import android.content.IntentFilter
+import android.util.Log
+import com.kunzisoft.keepass.database.element.Database
+import com.kunzisoft.keepass.magikeyboard.MagikIME
+import com.kunzisoft.keepass.notifications.ClipboardEntryNotificationService
+import com.kunzisoft.keepass.notifications.KeyboardEntryNotificationService
+import com.kunzisoft.keepass.settings.PreferencesUtil
+import com.kunzisoft.keepass.timeout.TimeoutHelper
+
const val DATABASE_START_TASK_ACTION = "com.kunzisoft.keepass.DATABASE_START_TASK_ACTION"
const val DATABASE_STOP_TASK_ACTION = "com.kunzisoft.keepass.DATABASE_STOP_TASK_ACTION"
@@ -26,3 +39,51 @@ const val LOCK_ACTION = "com.kunzisoft.keepass.LOCK"
const val REMOVE_ENTRY_MAGIKEYBOARD_ACTION = "com.kunzisoft.keepass.REMOVE_ENTRY_MAGIKEYBOARD"
+class LockReceiver(var action: () -> Unit) : BroadcastReceiver() {
+
+ override fun onReceive(context: Context, intent: Intent) {
+ // If allowed, lock and exit
+ if (!TimeoutHelper.temporarilyDisableTimeout) {
+ intent.action?.let {
+ when (it) {
+ Intent.ACTION_SCREEN_OFF ->
+ if (PreferencesUtil.isLockDatabaseWhenScreenShutOffEnable(context)) {
+ action.invoke()
+ }
+ LOCK_ACTION -> action.invoke()
+ }
+ }
+ }
+ }
+}
+
+fun Context.registerLockReceiver(lockReceiver: LockReceiver?) {
+ lockReceiver?.let {
+ registerReceiver(it, IntentFilter().apply {
+ addAction(Intent.ACTION_SCREEN_OFF)
+ addAction(LOCK_ACTION)
+ })
+ }
+}
+
+fun Context.unregisterLockReceiver(lockReceiver: LockReceiver?) {
+ lockReceiver?.let {
+ unregisterReceiver(it)
+ }
+}
+
+fun Context.closeDatabase() {
+ // Stop the Magikeyboard service
+ stopService(Intent(this, KeyboardEntryNotificationService::class.java))
+ MagikIME.removeEntry(this)
+
+ // Stop the notification service
+ stopService(Intent(this, ClipboardEntryNotificationService::class.java))
+
+ Log.i(Context::class.java.name, "Shutdown after inactivity or manual lock")
+ (getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).apply {
+ cancelAll()
+ }
+ // Clear data
+ Database.getInstance().closeAndClear(applicationContext.filesDir)
+}
\ No newline at end of file
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 06c2b69c9..c6629aa86 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -412,8 +412,6 @@
Prověřením toho dialogu opraví KeePassDX chybu (založením nového UUID pro duplikáty) a bude pokračovat.
Databáze otevřena
Kopírujte pole záznamů pomocí schránky Vašeho zařízení
- Trvalé oznámení
- Přidat oznámení, když je databáze otevřena
K snadnějšímu otevření databáze použijte pokročilé odemknutí
Komprese dat
Komprese dat snižuje velikost databáze.
diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml
index 70ed72f96..2c7e25af0 100644
--- a/app/src/main/res/values-da/strings.xml
+++ b/app/src/main/res/values-da/strings.xml
@@ -411,8 +411,6 @@
Ved at godkende dialogboksen, vil KeePassDX løse problemet (ved at generere nye UUID\'er for dubletter) og fortsætte.
Database åbnet
Kopier indtastningsfelter ved hjælp af enhedens udklipsholder
- Vedvarende meddelelse
- Tilføj en meddelelse, når databasen er åben
Brug avanceret oplåsning for at gøre det lettere at åbne en database
Datakomprimering
Datakomprimering reducerer databasens størrelse.
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 12cfae376..39d9a403a 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -415,8 +415,6 @@
Durch die Validierung dieses Dialogs wird KeePassDX das Problem (durch Erzeugung neuer UUIDs für Duplikate) beheben und weiter ausgeführt.
Datenbank geöffnet
Eintragsfelder mithilfe der Zwischenablage des Geräts kopieren
- Dauerhafte Benachrichtigung
- Bei geöffneter Datenbank eine Benachrichtigung hinzufügen
Erweitertes Entsperren verwenden, um eine Datenbank einfacher zu öffnen.
Datenkompression
Datenkompression reduziert die Datenbankgröße.
diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml
index 9cccd80f2..86dfc3d86 100644
--- a/app/src/main/res/values-el/strings.xml
+++ b/app/src/main/res/values-el/strings.xml
@@ -408,8 +408,6 @@
Ενεργοποιήστε την αυτόματη συμπλήρωση για να συμπληρώσετε γρήγορα φόρμες σε άλλες εφαρμογές
Η Βάση Δεδομένων άνοιξε
Αντιγράψτε τα πεδία εισαγωγής χρησιμοποιώντας το πρόχειρο της συσκευής σας
- Συνεχής ειδοποίηση
- Προσθήκη ειδοποίησης όταν η βάση δεδομένων είναι ανοιχτή
Χρησιμοποιήστε το προηγμένο ξεκλείδωμα για να ανοίξετε μια βάση δεδομένων πιο εύκολα
Συμπίεση Δεδομένων
Η συμπίεση δεδομένων μειώνει το μέγεθος της βάσης δεδομένων.
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index e557b294f..8f5162972 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -422,8 +422,6 @@
En validant cette boîte de dialogue, KeePassDX corrigera le problème (en générant de nouveaux UUID pour les doublons) et continuera.
Base de données ouverte
Copie les champs d’une entrée à l’aide du presse-papier de votre appareil
- Notification persistante
- Ajoute une notification lorsque la base de données est ouverte
Utilise le déverrouillage avancé pour ouvrir plus facilement une base de données
Compression de données
La compression des données réduit la taille de la base de données.
diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml
index 22fd7deb9..4ded77fa2 100644
--- a/app/src/main/res/values-hr/strings.xml
+++ b/app/src/main/res/values-hr/strings.xml
@@ -184,8 +184,6 @@
Ako automatsko brisanje međuspremnika ne uspije, izbrišite njegovu povijest ručno.
Zaključaj bazu podataka kada je ekran ugašen
Pritisni \'Natrag\' za zaključavanje
- Trajna obavijest
- Dodaj obavijest kada je baza podataka otvorena
Napredno otključavanje
Koristite napredno otključavanje za jednostavnije otvaranje baze podataka
Biometričko otključavanje
diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml
index 09f310986..25db838ac 100644
--- a/app/src/main/res/values-nb/strings.xml
+++ b/app/src/main/res/values-nb/strings.xml
@@ -389,8 +389,6 @@
Sikkerhetsinnstillinger
Hovednøkkelinnstillinger
Databasen inneholder dupliserte UUID-er.
- Vedvarende merknad
- Legg til en merknad når databasen er åpen
Datakomprimering
Datakomprimering reduserer databasens størrelse.
Komprimering
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
index c75e12e65..c7d345c28 100644
--- a/app/src/main/res/values-nl/strings.xml
+++ b/app/src/main/res/values-nl/strings.xml
@@ -418,8 +418,6 @@
Door dit dialoogvenster te valideren, zal KeePassDX het probleem oplossen (door nieuwe UUID\'s voor duplicaten te genereren) en doorgaan.
Database geopend
Kopieer invoervelden met behulp van het klembord van uw apparaat
- Aanhoudende melding
- Voeg een melding toe wanneer de database is geopend
Geavanceerde ontgrendeling gebruiken om een database gemakkelijker te openen
Gegevenscompressie
Gegevenscompressie verkleint de omvang van de database.
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 6022faea3..2766a3ed9 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -402,8 +402,6 @@
Ustawienia klucza głównego
Baza danych zawiera zduplikowane identyfikatory UUID.
Baza danych otwarta
- Stałe powiadamianie
- Dodaj powiadomienie, gdy baza danych jest otwarta
Kompresja danych
Ogranicz liczbę elementów historii na wpis
Maksymalny rozmiar
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index a68112464..c6b0e05ef 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -414,8 +414,6 @@
Ao validar este diálogo, o KeePassDX irá consertar o problema (gerando um novo UUID para os duplicados) e continuar.
Banco de dados aberto
Copiar campos de entrada usando a área de transferência do seu aparelho
- Notificação persistente
- Adicionar uma notificação quando o banco de dados for aberto
Usar destravamento avançado para abrir o banco de dados mais facilmente
Compressão dos dados
Compressão dos dados reduz o tamanho do banco de dados.
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 59af53db1..33c9d5475 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -412,8 +412,6 @@
Если вы разрешите, KeePassDX исправит проблему (путём создания новых UUID для дубликатов) и продолжит работу.
База открыта
Копирование полей ввода с помощью буфера обмена устройства
- Постоянное уведомление
- Показывать уведомление, пока открыта база
Использовать дополнительную разблокировку для более лёгкого открытия базы данных
Сжатие данных
Сжатие данных уменьшает размер базы.
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index 0c6f73dc8..356261979 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -410,8 +410,6 @@
Aktivera autofyll för att snabbt kunna fylla i formulär i andra appar
Databas öppnad
Kopiera post-fält med hjälp av enhetens urklipp
- Beständig avisering
- Lägg till en avisering när databasen är öppen
Använd avancerad upplåsning för att öppna en databas enklare
Datakomprimering
Datakomprimering reducerar databasens storlek.
diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml
index de8d24274..6beeefa83 100644
--- a/app/src/main/res/values-tr/strings.xml
+++ b/app/src/main/res/values-tr/strings.xml
@@ -395,8 +395,6 @@
Bu iletişim kutusunu doğrulayarak, KeePassDX sorunu çözecek (tekrarlananlar için yeni UUID\'ler oluşturarak) ve devam edecektir.
Veritabanı açıldı
Cihazınızın panosunu kullanarak giriş alanlarını kopyala
- Kalıcı bildirim
- Veritabanı açıkken bir bildirim ekle
Veritabanını daha kolay açmak için gelişmiş kilit açma özelliğini kullan
Veri sıkıştırma
Veri sıkıştırma veritabanı boyutunu azaltır.
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index d183ed388..e4574038c 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -414,8 +414,6 @@
通过验证此对话框,KeePassDX将解决这个问题(通过给重复项生成新的UUID)并继续。
数据库开启
使用设备的剪贴板来复制输入字段
- 持久通知
- 当数据库打开时产生一条通知
使用高级解锁轻松打开数据库
数据压缩
数据压缩可降低数据库大小。
diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml
index a3c222a21..f75061a48 100644
--- a/app/src/main/res/values/donottranslate.xml
+++ b/app/src/main/res/values/donottranslate.xml
@@ -75,8 +75,6 @@
app_timeout_key
lock_database_screen_off_key
true
- persistent_notification_key
- true
lock_database_back_root_key
false
password_length_key
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index eb701ccbd..7dbbd1b3e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -295,8 +295,6 @@
Lock the database when the screen is off
Press \'Back\' to lock
Lock the database when the user clicks the back button on the root screen
- Persistent notification
- Add a notification when the database is open
Advanced unlock
Use advanced unlocking to open a database more easily
Biometric unlocking
diff --git a/app/src/main/res/xml/preferences_application.xml b/app/src/main/res/xml/preferences_application.xml
index 88dc017d4..f401c1bfd 100644
--- a/app/src/main/res/xml/preferences_application.xml
+++ b/app/src/main/res/xml/preferences_application.xml
@@ -83,11 +83,6 @@
android:title="@string/lock_database_back_root_title"
android:summary="@string/lock_database_back_root_summary"
android:defaultValue="@bool/lock_database_back_root_default"/>
-