mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Show file count in title for multiple uploads
This commit is contained in:
parent
95f6559357
commit
519f639d21
2 changed files with 7 additions and 0 deletions
|
|
@ -61,4 +61,8 @@
|
|||
<item quantity="one">Starting 1 upload</item>
|
||||
<item quantity="other">Starting %d uploads</item>
|
||||
</plurals>
|
||||
<plurals name="multiple_uploads_title">
|
||||
<item quantity="one">1 upload</item>
|
||||
<item quantity="other">%d uploads</item>
|
||||
</plurals>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -242,6 +242,9 @@ public class MultipleShareActivity extends AuthenticatedActivity {
|
|||
up.mimeType = intent.getType();
|
||||
photosList.add(up);
|
||||
}
|
||||
|
||||
setTitle(getResources().getQuantityString(R.plurals.multiple_uploads_title, urisList.size(), urisList.size()));
|
||||
|
||||
DisplayMetrics screenMetrics = getResources().getDisplayMetrics();
|
||||
int screenWidth = screenMetrics.widthPixels;
|
||||
int screenHeight = screenMetrics.heightPixels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue