mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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="one">Starting 1 upload</item>
|
||||||
<item quantity="other">Starting %d uploads</item>
|
<item quantity="other">Starting %d uploads</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
<plurals name="multiple_uploads_title">
|
||||||
|
<item quantity="one">1 upload</item>
|
||||||
|
<item quantity="other">%d uploads</item>
|
||||||
|
</plurals>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,9 @@ public class MultipleShareActivity extends AuthenticatedActivity {
|
||||||
up.mimeType = intent.getType();
|
up.mimeType = intent.getType();
|
||||||
photosList.add(up);
|
photosList.add(up);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTitle(getResources().getQuantityString(R.plurals.multiple_uploads_title, urisList.size(), urisList.size()));
|
||||||
|
|
||||||
DisplayMetrics screenMetrics = getResources().getDisplayMetrics();
|
DisplayMetrics screenMetrics = getResources().getDisplayMetrics();
|
||||||
int screenWidth = screenMetrics.widthPixels;
|
int screenWidth = screenMetrics.widthPixels;
|
||||||
int screenHeight = screenMetrics.heightPixels;
|
int screenHeight = screenMetrics.heightPixels;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue