Fixed #4836 & #4840 Added the functionality of cancel upload and also solved the small bug of pausing upload (#4843)

* Fixed #4836 & #4840

* Added Pausing PopUp

* Closing Pausing PopUp exactly when pause button disappears

* Managed to display the Pausing Upload

* Added the Pausing Dialog Using Progress Bar

* Added the Pausing Dialog Using Progress Bar

* Added Required Changes

* Added Required Changes-wording change

* Added Required Changes-wording change
This commit is contained in:
Arin Modi 2022-02-26 05:11:14 +05:30 committed by GitHub
parent f1169eaff9
commit 9431e3770c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 9 deletions

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_marginHorizontal="10dp"
android:paddingVertical="20dp"
android:layout_weight="2"
android:layout_height="wrap_content">
<ProgressBar
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="0.6" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/pausing_upload"
android:layout_weight="1.5"
android:layout_gravity="center"
android:textSize="14sp" />
</LinearLayout>

View file

@ -330,6 +330,7 @@
<string name="error_fetching_nearby_monuments">Error fetching nearby monuments.</string>
<string name="no_recent_searches">No recent searches</string>
<string name="delete_recent_searches_dialog">Are you sure you want to clear your search history?</string>
<string name="cancel_upload_dialog">Are you sure you want to cancel this upload?</string>
<string name="delete_search_dialog">Do you want to delete this search?</string>
<string name="search_history_deleted">Search history deleted</string>
@ -625,6 +626,8 @@ Upload your first media by tapping on the add button.</string>
<string name="quality_images_info">Quality images are diagrams or photographs that meet certain quality standards (which are mostly technical in nature) and are valuable for Wikimedia projects</string>
<string name="resuming_upload">Resuming upload…</string>
<string name="pausing_upload">Pausing upload…</string>
<string name="cancelling_upload">Cancelling upload…</string>
<string name="cancel_upload">Cancel Upload</string>
<string name="limited_connection_explanation">You have enabled limited connection mode. All uploads are paused and will resume once you disable this mode.</string>
<string name="limited_connection_is_on">Limited connection mode is on.</string>