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:
Ashish Kumar 2019-03-15 09:16:15 +05:30 committed by Vivek Maskara
parent b5051f9a4f
commit 1b5a56c7e6
5 changed files with 6 additions and 5 deletions

View file

@ -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());