mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Show number of contributions in activity subtitle
This commit is contained in:
parent
700bfee178
commit
0be55faffd
2 changed files with 8 additions and 1 deletions
|
|
@ -34,5 +34,10 @@
|
|||
<string name="menu_from_camera">Take photo</string>
|
||||
|
||||
<string name="provider_contributions">My contributions</string>
|
||||
<string name="share">Share</string>
|
||||
|
||||
<plurals name="contributions_subtitle">
|
||||
<item quantity="zero">No contributions yet</item>
|
||||
<item quantity="one">1 file contributed</item>
|
||||
<item quantity="other">%d files contributed</item>
|
||||
</plurals>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -248,6 +248,8 @@ public class ContributionsActivity
|
|||
public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor cursor) {
|
||||
allContributions = cursor;
|
||||
contributionsList.setCursor(cursor);
|
||||
|
||||
getSupportActionBar().setSubtitle(getResources().getQuantityString(R.plurals.contributions_subtitle, cursor.getCount(), cursor.getCount()));
|
||||
}
|
||||
|
||||
public void onLoaderReset(Loader<Cursor> cursorLoader) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue