mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
Improve resizing by forcing layout
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b28efa44df
commit
02785b3f9c
@ -157,7 +157,7 @@ dependencies {
|
||||
compileOnly "org.projectlombok:lombok:1.18.4"
|
||||
annotationProcessor "org.projectlombok:lombok:1.18.4"
|
||||
|
||||
implementation 'com.jakewharton:butterknife:9.0.0-rc1'
|
||||
implementation 'com.jakewharton:butterknife:9.0.0-rc2'
|
||||
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
|
||||
|
||||
implementation 'com.github.HITGIF:TextFieldBoxes:1.4.3'
|
||||
|
@ -96,6 +96,7 @@ public class DisplayUtils {
|
||||
draweeView.getLayoutParams().width = imageInfo.getWidth() > 480 ? 480 : imageInfo.getWidth();
|
||||
draweeView.getLayoutParams().height = ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||
draweeView.setAspectRatio((float) imageInfo.getWidth() / imageInfo.getHeight());
|
||||
draweeView.requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user