mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Removed the quantity item zero from string plural contributions_subtitle Handled zero uplaod count from MainActivity
This commit is contained in:
parent
2c5a45760f
commit
f1b40728b2
2 changed files with 5 additions and 5 deletions
|
|
@ -207,9 +207,11 @@ public class MainActivity extends BaseActivity
|
|||
*/
|
||||
public void setNumOfUploads(int uploadCount) {
|
||||
if (activeFragment == ActiveFragment.CONTRIBUTIONS) {
|
||||
setTitle(getResources().getString(R.string.contributions_fragment) +" "+ getResources()
|
||||
setTitle(getResources().getString(R.string.contributions_fragment) +" "+ (
|
||||
!(uploadCount == 0) ?
|
||||
getResources()
|
||||
.getQuantityString(R.plurals.contributions_subtitle,
|
||||
uploadCount, uploadCount));
|
||||
uploadCount, uploadCount):getString(R.string.contributions_subtitle_zero)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue