Fix read only #792

This commit is contained in:
J-Jamet
2020-11-20 18:36:44 +01:00
parent 81a53440bc
commit a5631a0476
4 changed files with 11 additions and 13 deletions

View File

@@ -3,10 +3,10 @@ KeePassDX(2.9.2)
* Prevent manual creation of existing field name #718 * Prevent manual creation of existing field name #718
* Harmonization of field names #789 * Harmonization of field names #789
* Different channels for each type of notification #688 * Different channels for each type of notification #688
* Fix search in OTP #780 * Fix OTP #780 #781
* Fix empty OTP field after selection #781
* Fix same save shared info #783 * Fix same save shared info #783
* Fix switch back to previous keyboard #782 * Fix switch back to previous keyboard #782
* Fix read only #792
* Better UI #719 * Better UI #719
KeePassDX(2.9.1) KeePassDX(2.9.1)

View File

@@ -23,11 +23,11 @@ import android.app.PendingIntent
import android.content.Intent import android.content.Intent
import android.net.Uri import android.net.Uri
import android.os.Binder import android.os.Binder
import android.os.Build
import android.os.Bundle import android.os.Bundle
import android.os.IBinder import android.os.IBinder
import com.kunzisoft.keepass.R import com.kunzisoft.keepass.R
import com.kunzisoft.keepass.activities.GroupActivity import com.kunzisoft.keepass.activities.GroupActivity
import com.kunzisoft.keepass.activities.helpers.ReadOnlyHelper
import com.kunzisoft.keepass.app.database.CipherDatabaseEntity import com.kunzisoft.keepass.app.database.CipherDatabaseEntity
import com.kunzisoft.keepass.database.action.* import com.kunzisoft.keepass.database.action.*
import com.kunzisoft.keepass.database.action.history.DeleteEntryHistoryDatabaseRunnable import com.kunzisoft.keepass.database.action.history.DeleteEntryHistoryDatabaseRunnable
@@ -282,14 +282,12 @@ open class DatabaseTaskNotificationService : LockNotificationService(), Progress
// Database is normally open // Database is normally open
if (mDatabase.loaded) { if (mDatabase.loaded) {
// Build Intents for notification action // Build Intents for notification action
var pendingDatabaseFlag = 0
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
pendingDatabaseFlag = PendingIntent.FLAG_IMMUTABLE
}
val pendingDatabaseIntent = PendingIntent.getActivity(this, val pendingDatabaseIntent = PendingIntent.getActivity(this,
0, 0,
Intent(this, GroupActivity::class.java), Intent(this, GroupActivity::class.java).apply {
pendingDatabaseFlag) ReadOnlyHelper.putReadOnlyInIntent(this, mDatabase.isReadOnly)
},
PendingIntent.FLAG_UPDATE_CURRENT)
val deleteIntent = Intent(this, DatabaseTaskNotificationService::class.java).apply { val deleteIntent = Intent(this, DatabaseTaskNotificationService::class.java).apply {
action = ACTION_DATABASE_CLOSE action = ACTION_DATABASE_CLOSE
} }

View File

@@ -2,8 +2,8 @@
* Prevent manual creation of existing field name #718 * Prevent manual creation of existing field name #718
* Harmonization of field names #789 * Harmonization of field names #789
* Different channels for each type of notification #688 * Different channels for each type of notification #688
* Fix search in OTP #780 * Fix OTP #780 #781
* Fix empty OTP field after selection #781
* Fix same save shared info #783 * Fix same save shared info #783
* Fix switch back to previous keyboard #782 * Fix switch back to previous keyboard #782
* Fix read only #792
* Better UI #719 * Better UI #719

View File

@@ -2,8 +2,8 @@
* Préviens la création manuelle d'un nom de champ existant #718 * Préviens la création manuelle d'un nom de champ existant #718
* Harmonisation des noms de champ #789 * Harmonisation des noms de champ #789
* Différents canaux pour chaque type de notification #688 * Différents canaux pour chaque type de notification #688
* Correction de la recherche de l'OTP #780 * Correction OTP #780 #781
* Correction de champ OTP vide après sélection #781
* Correction de la sauvegarde d'une même info partagée #783 * Correction de la sauvegarde d'une même info partagée #783
* Correction du changement vers le clavier précédent #782 * Correction du changement vers le clavier précédent #782
* Correction de lecture seule #792
* Meilleure UI #719 * Meilleure UI #719