use different avatar sizes for landscape/portrait for call notification
while always fetch the larger version (portrait size)
This commit is contained in:
Родитель
073b092f8a
Коммит
9ffead9b73
|
@ -266,7 +266,7 @@ public class CallNotificationController extends BaseController {
|
|||
|
||||
private void loadAvatar() {
|
||||
int avatarSize = Math.round(NextcloudTalkApplication
|
||||
.getSharedApplication().getResources().getDimension(R.dimen.avatar_size_very_big));
|
||||
.getSharedApplication().getResources().getDimension(R.dimen.avatar_fetching_size_very_big));
|
||||
|
||||
switch (currentRoom.getType()) {
|
||||
case ROOM_TYPE_ONE_TO_ONE_CALL:
|
||||
|
|
|
@ -5,4 +5,6 @@
|
|||
|
||||
<dimen name="display_target_image_size">120dp</dimen>
|
||||
<dimen name="display_target_image_margin">16dp</dimen>
|
||||
|
||||
<dimen name="avatar_size_very_big">120dp</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
<dimen name="margin_between_elements">8dp</dimen>
|
||||
<dimen name="avatar_size">40dp</dimen>
|
||||
<dimen name="avatar_size_big">80dp</dimen>
|
||||
<dimen name="avatar_size_very_big">120dp</dimen>
|
||||
<dimen name="avatar_size_very_big">@dimen/avatar_fetching_size_very_big</dimen>
|
||||
<dimen name="avatar_fetching_size_very_big">140dp</dimen>
|
||||
<dimen name="avatar_corner_radius">20dp</dimen>
|
||||
|
||||
<dimen name="chat_text_size">14sp</dimen>
|
||||
|
|
Загрузка…
Ссылка в новой задаче