mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 05:32:30 +00:00
Support for notification privacy settings.
// FREEBIE
This commit is contained in:
@@ -6,6 +6,8 @@ import android.preference.PreferenceManager;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
|
||||
import org.thoughtcrime.securesms.preferences.NotificationPrivacyPreference;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class TextSecurePreferences {
|
||||
@@ -70,6 +72,11 @@ public class TextSecurePreferences {
|
||||
private static final String RATING_ENABLED_PREF = "pref_rating_enabled";
|
||||
|
||||
public static final String REPEAT_ALERTS_PREF = "pref_repeat_alerts";
|
||||
public static final String NOTIFICATION_PRIVACY_PREF = "pref_notification_privacy";
|
||||
|
||||
public static NotificationPrivacyPreference getNotificationPrivacy(Context context) {
|
||||
return new NotificationPrivacyPreference(getStringPreference(context, NOTIFICATION_PRIVACY_PREF, "all"));
|
||||
}
|
||||
|
||||
public static long getRatingLaterTimestamp(Context context) {
|
||||
return getLongPreference(context, RATING_LATER_PREF, 0);
|
||||
|
||||
Reference in New Issue
Block a user