Skip to content

Commit 6562da3

Browse files
committed
#3653 Many Mnull requests - move log line
1 parent c605366 commit 6562da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ private void fetchAndDisplayCaption(Contribution contribution) {
114114
if ((contribution.getState() != Contribution.STATE_COMPLETED)) {
115115
titleView.setText(contribution.getDisplayTitle());
116116
} else {
117-
Timber.d("Fetching caption for %s", contribution.getFilename());
118117
final String pageId = contribution.getPageId();
119118
if (pageId != null) {
119+
Timber.d("Fetching caption for %s", contribution.getFilename());
120120
String wikibaseMediaId = PAGE_ID_PREFIX
121121
+ pageId; // Create Wikibase media id from the page id. Example media id: M80618155 for https://commons.wikimedia.org/wiki/File:Tantanmen.jpeg with has the pageid 80618155
122122
compositeDisposable.add(mediaClient.getCaptionByWikibaseIdentifier(wikibaseMediaId)

0 commit comments

Comments
 (0)