mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
feat: add logs and fix compile issue with a themes.xml entry, add removing profile picture into logic for profile manager
This commit is contained in:
parent
fb7dcf58ca
commit
4cbf1bc337
@ -111,7 +111,7 @@ public class RetrieveProfileAvatarJob extends BaseJob {
|
||||
}
|
||||
database.setProfileAvatar(recipient, profileAvatar);
|
||||
} catch (Exception e) {
|
||||
|
||||
Log.e("Loki", "Failed to download profile avatar", e);
|
||||
} finally {
|
||||
if (downloadDestination != null) downloadDestination.delete();
|
||||
}
|
||||
|
@ -96,6 +96,8 @@ class ProfileManager(private val context: Context, private val configFactory: Co
|
||||
val key = contact.profilePictureEncryptionKey
|
||||
if (!url.isNullOrEmpty() && key != null && key.size == 32) {
|
||||
this.profilePicture = UserPic(url, key)
|
||||
} else if (url.isNullOrEmpty() && key == null) {
|
||||
this.profilePicture = UserPic.DEFAULT
|
||||
}
|
||||
}
|
||||
if (contactConfig.needsPush()) {
|
||||
|
@ -661,7 +661,6 @@
|
||||
<item name="colorCellBackground">@color/classic_dark_1</item>
|
||||
<item name="colorSettingsBackground">@color/classic_dark_1</item>
|
||||
<item name="colorDividerBackground">@color/classic_dark_3</item>
|
||||
<item name="colorCellRipple">@color/classic_dark_3</item>
|
||||
<item name="actionBarPopupTheme">@style/Dark.Popup</item>
|
||||
<item name="actionBarWidgetTheme">@null</item>
|
||||
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
|
||||
@ -709,7 +708,6 @@
|
||||
<item name="input_bar_lock_view_background">@color/classic_dark_2</item>
|
||||
<item name="input_bar_lock_view_border">@color/classic_dark_3</item>
|
||||
<item name="mention_candidates_view_background">@color/classic_dark_2</item>
|
||||
<item name="mention_candidates_view_background_ripple">@color/classic_dark_3</item>
|
||||
<item name="scroll_to_bottom_button_background">@color/classic_dark_1</item>
|
||||
<item name="scroll_to_bottom_button_border">@color/classic_dark_3</item>
|
||||
<item name="conversation_unread_count_indicator_background">@color/classic_dark_4</item>
|
||||
|
Loading…
Reference in New Issue
Block a user