Skip to content

Commit bcbe9eb

Browse files
committed
explained the run method
1 parent 47c1894 commit bcbe9eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

231+
// the displayMediaDetails id executed inside a post runnable because it uses the width of
232+
// the scrollView in order to update the aspect ratio of the SimpleDrawee image
231233
scrollView.post(new Runnable() {
232234
@Override
233235
public void run() {

0 commit comments

Comments
 (0)