Skip to content

Commit e4a0eb1

Browse files
authored
Merge pull request #215 from chiragw15/bugauthor
Adding Author name in project and apk fragment
2 parents 1faec75 + 035897c commit e4a0eb1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source-code/app/src/main/java/org/buildmlearn/toolkit/adapter/SavedApiAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
115115
}
116116

117117
SavedApi apiData = getItem(position);
118-
holder.details.setText(String.format(Locale.ENGLISH, "Modified: %s, Author: ", apiData.getDate(), apiData.getAuthor()));
118+
holder.details.setText(String.format(Locale.ENGLISH, "%s, %s", apiData.getAuthor(), apiData.getDate()));
119119
holder.apkName.setText(apiData.getName());
120120
holder.projectIcon.setText(apiData.getName().substring(0, 1).toUpperCase(Locale.US));
121121
convertView.setTag(holder);

source-code/app/src/main/java/org/buildmlearn/toolkit/adapter/SavedProjectAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
112112
}
113113

114114
SavedProject projectData = getItem(position);
115-
holder.details.setText(String.format(Locale.ENGLISH, "Modified: %s, Author: ", projectData.getDate(), projectData.getAuthor()));
115+
holder.details.setText(String.format(Locale.ENGLISH, "%s, %s", projectData.getAuthor(), projectData.getDate()));
116116
holder.projectName.setText(projectData.getName());
117117
holder.projectIcon.setText(projectData.getName().substring(0, 1).toUpperCase(Locale.US));
118118
convertView.setTag(holder);

0 commit comments

Comments
 (0)