mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
With changes for limited connection mode (#3934)
* With changed for limited connection mode * Java docs * With minor fix * Fix cosmetic issues * Fix ANR * Add Unit test
This commit is contained in:
parent
59ee7b8df2
commit
66f6e2e648
15 changed files with 389 additions and 15 deletions
BIN
app/src/main/res/drawable/image_placeholder.png
Normal file
BIN
app/src/main/res/drawable/image_placeholder.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
5
app/src/main/res/layout/menu_switch.xml
Normal file
5
app/src/main/res/layout/menu_switch.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Switch xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/switch_toggle_limited_connection_mode"/>
|
||||
|
|
@ -1,5 +1,12 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item android:id="@+id/toggle_limited_connection_mode"
|
||||
android:title="@string/limited_connection"
|
||||
app:showAsAction="always"
|
||||
android:checkable="true"
|
||||
app:actionLayout="@layout/menu_switch"
|
||||
/>
|
||||
<item android:id="@+id/notifications"
|
||||
android:title="@string/notifications"
|
||||
app:showAsAction="ifRoom|withText"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
<item quantity="one">(%1$d)</item>
|
||||
<item quantity="other">(%1$d)</item>
|
||||
</plurals>
|
||||
<string name="starting_uploads"> Starting Uploads</string>
|
||||
<plurals name="starting_multiple_uploads">
|
||||
<item quantity="one">Starting %1$d upload</item>
|
||||
<item quantity="other">Starting %1$d uploads</item>
|
||||
|
|
@ -54,6 +55,7 @@
|
|||
<string name="upload_failed">File not found. Please try another file.</string>
|
||||
<string name="authentication_failed">Authentication failed, please login again</string>
|
||||
<string name="uploading_started">Upload started!</string>
|
||||
<string name="uploading_queued">Upload queued (limited connection mode enabled)</string>
|
||||
<string name="upload_completed_notification_title">%1$s uploaded!</string>
|
||||
<string name="upload_completed_notification_text">Tap to view your upload</string>
|
||||
<string name="upload_progress_notification_title_start">Starting %1$s upload</string>
|
||||
|
|
@ -692,4 +694,7 @@ Upload your first media by tapping on the add button.</string>
|
|||
<string name="mapbox_telemetry">Telemetry Opt Out</string>
|
||||
<string name="telemetry_opt_out_summary">Send anonymized location and usage data to Mapbox when using Nearby feature</string>
|
||||
<string name="map_attribution" translatable="false"><![CDATA[© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> <a href="https://www.mapbox.com/map-feedback/">Improve this map</a>]]></string>
|
||||
<string name="limited_connection_enabled">Limited connection mode enabled!</string>
|
||||
<string name="limited_connection_disabled">Limited connection mode disabled. Pending uploads will resume now.</string>
|
||||
<string name="limited_connection">Limited Connection</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue