remove dead code

the screen-lock functionality was removed in
https://github.com/deltachat/deltachat-android/pull/1942 ;
the getters/setters were in use a little longer for a migration device messsage,
however, meanwhile this migration is removed as well.
This commit is contained in:
B. Petersen
2023-10-04 22:16:58 +02:00
committed by bjoern
parent 1c15de6330
commit 3242f12052
2 changed files with 1 additions and 12 deletions
@@ -446,8 +446,7 @@ public class NotificationCenter {
// add buttons that allow some actions without opening Delta Chat.
// if privacy options are enabled, the buttons are not added.
if (privacy.isDisplayContact() && privacy.isDisplayMessage()
&& !Prefs.isScreenLockEnabled(context)) {
if (privacy.isDisplayContact() && privacy.isDisplayMessage()) {
try {
PendingIntent inNotificationReplyIntent = getRemoteReplyIntent(chatData);
PendingIntent markReadIntent = getMarkAsReadIntent(chatData, true);
@@ -62,8 +62,6 @@ public class Prefs {
private static final String PROFILE_AVATAR_ID_PREF = "pref_profile_avatar_id";
public static final String INCOGNITO_KEYBORAD_PREF = "pref_incognito_keyboard";
public static final String SCREEN_LOCK = "pref_android_screen_lock";
private static final String PREF_CONTACT_PHOTO_IDENTIFIERS = "pref_contact_photo_identifiers";
private static final String MAP_CENTER_LATITUDE = "pref_map_center_latitude";
@@ -81,14 +79,6 @@ public class Prefs {
public static VibrateState fromId(int id) { return values()[id]; }
}
public static boolean isScreenLockEnabled(@NonNull Context context) {
return getBooleanPreference(context, SCREEN_LOCK, false);
}
public static void setScreenLockEnabled(@NonNull Context context, boolean value) {
setBooleanPreference(context, SCREEN_LOCK, value);
}
public static void setDatabaseEncryptedSecret(@NonNull Context context, @NonNull String secret, int accountId) {
setStringPreference(context, DATABASE_ENCRYPTED_SECRET + accountId, secret);
}