mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Fix document picker trigger bug (#5275)
* Revert "Reverta1b6973until we find out why it uses OPEN_DOCUMENT by default on fresh install" This reverts commit7ce3b7ebb1. * Potential fix for get_content picker being used in first run The initial state of the 'openDocumentPhotoPickerPref' seems to be incorrect during a fresh install on some devices. Try to ensure we always use the proper initial state by propagating the default to the preference access code. This hopefully fixes #5274
This commit is contained in:
parent
7ce3b7ebb1
commit
4540f54d59
5 changed files with 26 additions and 25 deletions
|
|
@ -57,6 +57,7 @@
|
|||
android:title="Uploads">
|
||||
|
||||
<SwitchPreference
|
||||
|
||||
android:defaultValue="true"
|
||||
android:key="useExternalStorage"
|
||||
app:singleLineTitle="false"
|
||||
|
|
@ -68,6 +69,12 @@
|
|||
android:title="@string/in_app_camera_location_permission_title"
|
||||
android:summary="@string/in_app_camera_location_switch_pref_summary"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="openDocumentPhotoPickerPref"
|
||||
android:summary="@string/open_document_photo_picker_explanation"
|
||||
android:title="@string/open_document_photo_picker_title"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="useAuthorName"
|
||||
app:singleLineTitle="false"
|
||||
|
|
@ -81,11 +88,6 @@
|
|||
app:useSimpleSummaryProvider="true"
|
||||
android:title="@string/preference_author_name" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="getContentPhotoPickerPref"
|
||||
android:summary="@string/get_content_photo_picker_explanation"
|
||||
android:title="@string/get_content_photo_picker_title"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue