mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 11:03:07 +00:00
try to store avatar url locally
This commit is contained in:
@@ -121,6 +121,7 @@ public class TextSecurePreferences {
|
||||
private static final String PROFILE_KEY_PREF = "pref_profile_key";
|
||||
private static final String PROFILE_NAME_PREF = "pref_profile_name";
|
||||
private static final String PROFILE_AVATAR_ID_PREF = "pref_profile_avatar_id";
|
||||
private static final String PROFILE_AVATAR_URL_PREF = "pref_profile_avatar_url";
|
||||
public static final String READ_RECEIPTS_PREF = "pref_read_receipts";
|
||||
public static final String INCOGNITO_KEYBORAD_PREF = "pref_incognito_keyboard";
|
||||
private static final String UNAUTHORIZED_RECEIVED = "pref_unauthorized_received";
|
||||
@@ -401,6 +402,14 @@ public class TextSecurePreferences {
|
||||
return getIntegerPreference(context, PROFILE_AVATAR_ID_PREF, 0);
|
||||
}
|
||||
|
||||
public static void setProfileAvatarUrl(Context context, String url) {
|
||||
setStringPreference(context, PROFILE_AVATAR_URL_PREF, url);
|
||||
}
|
||||
|
||||
public static String getProfileAvatarUrl(Context context) {
|
||||
return getStringPreference(context, PROFILE_AVATAR_URL_PREF, null);
|
||||
}
|
||||
|
||||
public static int getNotificationPriority(Context context) {
|
||||
return Integer.valueOf(getStringPreference(context, NOTIFICATION_PRIORITY_PREF, String.valueOf(NotificationCompat.PRIORITY_HIGH)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user