mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Bugfix/issue 2580 (#2584)
* Corrected string placedholders in certain string files * Corrected string placedholders in certain string files[Bug fix #2580]
This commit is contained in:
parent
b5051f9a4f
commit
1b5a56c7e6
5 changed files with 6 additions and 5 deletions
|
|
@ -2,6 +2,7 @@ package fr.free.nrw.commons.category;
|
|||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
|
@ -100,7 +101,7 @@ public class GridViewAdapter extends ArrayAdapter {
|
|||
* @param author
|
||||
*/
|
||||
private void setAuthorView(Media item, TextView author) {
|
||||
if (item.getCreator() != null && !item.getCreator().equals("")) {
|
||||
if (!TextUtils.isEmpty(item.getCreator())) {
|
||||
String uploadedByTemplate = context.getString(R.string.image_uploaded_by);
|
||||
|
||||
String uploadedBy = String.format(Locale.getDefault(), uploadedByTemplate, item.getCreator());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue