Merge pull request #567 from sandarumk/set_upload_limit

Set upload limit
This commit is contained in:
Josephine Lim 2017-05-14 13:52:20 +02:00 committed by GitHub
commit 815837ab91
5 changed files with 71 additions and 4 deletions

View file

@ -24,7 +24,7 @@
<item quantity="one">%d file uploading</item>
<item quantity="other">%d files uploading</item>
</plurals>
<string name="title_activity_contributions">My uploads</string>
<string name="title_activity_contributions">My Recent Uploads</string>
<string name="contribution_state_queued">Queued</string>
<string name="contribution_state_failed">Failed</string>
<string name="contribution_state_in_progress">%1$d%% complete</string>
@ -173,4 +173,9 @@ Tap this message (or hit back) to skip this step.</string>
<string name="map_theme_light">mapbox://styles/mapbox/traffic-day-v2</string>
<string name="map_theme_dark">mapbox://styles/mapbox/traffic-night-v2</string>
<string name="mapbox_commons_app_token">pk.eyJ1IjoibWFza2FyYXZpdmVrIiwiYSI6ImNqMmxvdzFjMTAwMHYzM283ZWM3eW5tcDAifQ.ib5SZ9EVjwJe6GSKve0bcg</string>
<string name="number_of_uploads">My Recent Upload Limit</string>
<string name="maximum_limit">Maximum Limit</string>
<string name="maximum_limit_alert">Maximum limit should be 500</string>
<string name="set_limit">Set Recent Upload Limit</string>
</resources>

View file

@ -38,4 +38,12 @@
android:summary="@string/use_wikidata_summary"
/>
<EditTextPreference
android:key="uploads"
android:defaultValue="100"
android:title= "@string/set_limit"
android:inputType="numberDecimal"
android:maxLength="3"
/>
</PreferenceScreen>