use different avatar sizes for landscape/portrait for call notification

while always fetch the larger version (portrait size)
This commit is contained in:
AndyScherzinger 2018-06-18 14:05:52 +02:00
parent 073b092f8a
commit 9ffead9b73
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 5 additions and 2 deletions

View file

@ -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:

View file

@ -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>

View file

@ -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>