mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Show 1 Award instead of 1 Awards. Version 3.0.3.
This commit is contained in:
parent
499f507f88
commit
0f8395221d
@ -6,8 +6,8 @@ android {
|
||||
applicationId "ml.docilealligator.infinityforreddit"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 32
|
||||
versionName "3.0.2"
|
||||
versionCode 33
|
||||
versionName "3.0.3"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
@ -457,7 +457,11 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
||||
|
||||
if (nAwards > 0) {
|
||||
((PostViewHolder) holder).awardsTextView.setVisibility(View.VISIBLE);
|
||||
((PostViewHolder) holder).awardsTextView.setText(mActivity.getString(R.string.n_awards, nAwards));
|
||||
if (nAwards == 1) {
|
||||
((PostViewHolder) holder).awardsTextView.setText(mActivity.getString(R.string.one_award));
|
||||
} else {
|
||||
((PostViewHolder) holder).awardsTextView.setText(mActivity.getString(R.string.n_awards, nAwards));
|
||||
}
|
||||
}
|
||||
|
||||
switch (voteType) {
|
||||
@ -1014,7 +1018,11 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
||||
|
||||
if (nAwards > 0) {
|
||||
((PostCompactViewHolder) holder).awardsTextView.setVisibility(View.VISIBLE);
|
||||
((PostCompactViewHolder) holder).awardsTextView.setText(mActivity.getString(R.string.n_awards, post.getnAwards()));
|
||||
if (nAwards == 1) {
|
||||
((PostCompactViewHolder) holder).awardsTextView.setText(mActivity.getString(R.string.one_award));
|
||||
} else {
|
||||
((PostCompactViewHolder) holder).awardsTextView.setText(mActivity.getString(R.string.n_awards, nAwards));
|
||||
}
|
||||
}
|
||||
|
||||
switch (voteType) {
|
||||
|
@ -694,5 +694,6 @@
|
||||
<string name="delete_multi_reddit">Delete Multireddit</string>
|
||||
|
||||
<string name="n_awards">%1$d Awards</string>
|
||||
<string name="one_award">1 Award</string>
|
||||
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user