mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
author not shown bug (#3525)
This commit is contained in:
parent
1fd748f8e7
commit
9cb81fce8c
1 changed files with 2 additions and 4 deletions
|
|
@ -99,10 +99,8 @@ public class GridViewAdapter extends ArrayAdapter {
|
|||
*/
|
||||
private void setAuthorView(Media item, TextView author) {
|
||||
if (!TextUtils.isEmpty(item.getCreator())) {
|
||||
String uploadedByTemplate = getContext().getString(R.string.image_uploaded_by);
|
||||
|
||||
String uploadedBy = String.format(Locale.getDefault(), uploadedByTemplate, item.getCreator());
|
||||
author.setText(uploadedBy);
|
||||
author.setVisibility(View.VISIBLE);
|
||||
author.setText(getContext().getString(R.string.image_uploaded_by, item.getCreator()));
|
||||
} else {
|
||||
author.setVisibility(View.GONE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue