mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user