mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
* Show campaigns * Added a ui util class SwipableCardView which passes the onSwipe event to its children * NearbyCardView & CampaignView extend SwipableCardView * Fetch campaigns in ContributionsFragment * Added an option to enable disable campaign in Settings/Preferences * synced strings with master * removed duplicate initialsation of CampaignPresenter
76 lines
No EOL
3.6 KiB
XML
76 lines
No EOL
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreferenceCategory
|
|
android:title="@string/preference_category_appearance">
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleSwitchPreference
|
|
android:title="@string/preference_theme"
|
|
android:defaultValue="false"
|
|
android:summary="@string/preference_theme_summary"
|
|
android:key="theme" />
|
|
|
|
</fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreferenceCategory>
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreferenceCategory
|
|
android:title="@string/preference_category_general">
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleListPreference
|
|
android:key="defaultLicense"
|
|
android:title="@string/preference_license"
|
|
android:entries="@array/pref_defaultLicense_entries"
|
|
android:entryValues="@array/pref_defaultLicense_values"
|
|
android:defaultValue="@string/license_pref_cc_by_sa_4_0" />
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleSwitchPreference
|
|
android:key="useExternalStorage"
|
|
android:title="@string/use_external_storage"
|
|
android:defaultValue="true"
|
|
android:summary="@string/use_external_storage_summary" />
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleEditTextPreference
|
|
android:key="uploads"
|
|
android:defaultValue="100"
|
|
android:title= "@string/set_limit"
|
|
android:inputType="numberDecimal"
|
|
android:maxLength="3" />
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleSwitchPreference
|
|
android:key="displayNearbyCardView"
|
|
android:title="@string/display_nearby_notification"
|
|
android:defaultValue="true"
|
|
android:summary="@string/display_nearby_notification_summary" />
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleSwitchPreference
|
|
android:key="displayLocationPermissionForCardView"
|
|
android:title="@string/display_location_permission_title"
|
|
android:defaultValue="true"
|
|
android:summary="@string/display_location_permission_explanation" />
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitleSwitchPreference
|
|
android:key="displayCampaignsCardView"
|
|
android:title="@string/display_campaigns"
|
|
android:defaultValue="true"
|
|
android:summary="@string/display_campaigns_explanation" />
|
|
|
|
</fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreferenceCategory>
|
|
|
|
<!-- The key 'allowGps' was used before and has since been removed based on the discussion at #1599.
|
|
Do not reuse this key unless you revive the same feature with the changes mentioned at #1599.-->
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreferenceCategory
|
|
android:title="@string/preference_category_feedback">
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreference
|
|
android:key="becomeBetaTester"
|
|
android:title="@string/become_a_tester_title"
|
|
android:summary="@string/become_a_tester_description">
|
|
</fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreference>
|
|
|
|
<fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreference
|
|
android:key="sendLogFile"
|
|
android:title="@string/send_log_file"
|
|
android:summary="@string/send_log_file_description"/>
|
|
|
|
</fr.free.nrw.commons.ui.LongTitlePreferences.LongTitlePreferenceCategory>
|
|
</PreferenceScreen> |