Add a new preference to set the upload limit

This commit is contained in:
Dinu Kumarasiri 2017-05-13 16:49:36 +02:00
parent 93b867af4f
commit 6feed8cab1
4 changed files with 56 additions and 0 deletions

View file

@ -171,4 +171,9 @@ Tap this message (or hit back) to skip this step.</string>
<string name="use_wikidata">Use Wikidata</string>
<string name="use_wikidata_summary">(Warning: disabling this may cause large mobile data consumption)</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>