Skip to content

Commit 6df58c4

Browse files
committed
some explanation
1 parent 47c1894 commit 6df58c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ public void onResume() {
228228
}
229229
media = detailProvider.getMediaAtPosition(index);
230230

231+
// The displayMediaDetails is called after the scrollView is laid out, the reason
232+
// for this is that the SimpleDrawee image uses the scrollView's width so as to
233+
// update the aspect ratio of the view
231234
scrollView.post(new Runnable() {
232235
@Override
233236
public void run() {

0 commit comments

Comments
 (0)