mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-31 21:44:46 +01:00
Set photo size first in the maker list
This commit is contained in:
@@ -77,10 +77,12 @@ public class ListItemUtils {
|
||||
textGradient.setVisibility(hasPhoto ? View.VISIBLE : View.GONE);
|
||||
|
||||
if (hasPhoto) {
|
||||
int photoHeight = getPhotoHeight(activity);
|
||||
photo.getLayoutParams().height = photoHeight;
|
||||
photo.setImageResource(android.R.color.transparent);
|
||||
Display defaultDisplay = activity.getWindowManager().getDefaultDisplay();
|
||||
PhotoUtils.setImageVew(
|
||||
photo, Uri.parse(photoUrl), defaultDisplay.getWidth(), getPhotoHeight(activity), false);
|
||||
photo, Uri.parse(photoUrl), defaultDisplay.getWidth(), photoHeight, false);
|
||||
}
|
||||
|
||||
// Set icon
|
||||
|
||||
Reference in New Issue
Block a user