feat: Allow disabling kDrive display in ContentProvider#2015
Conversation
fb2ddb0 to
1cb1e52
Compare
0480d50 to
1cb1e52
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new Security settings screen that lets users toggle whether kDrive’s DocumentsProvider is exposed to the system “Files” app (and other third‑party file pickers), and wires that screen into the existing Settings navigation.
Changes:
- Added “Show in Files” strings (with multiple localizations) and a new Security settings screen UI.
- Added a new
SecuritySettingsFragmentand navigation route fromSettingsFragment. - Implemented a persisted “provider disabled” flag in
CloudStorageProviderand enforced it inqueryChildDocuments()/openDocument().
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| app/src/main/res/values/strings.xml | Adds new strings for the “Show in Files” toggle and provider-disabled error. |
| app/src/main/res/values-*/strings.xml | Adds translations for the new provider toggle/error strings (sv/pt/pl/nl/nb/it/fr/fi/es/el/de/da). |
| app/src/main/res/navigation/main_navigation.xml | Adds navigation action from Settings to the new Security settings fragment; registers the fragment destination. |
| app/src/main/res/layout/fragment_settings_security.xml | New Security settings screen layout containing app lock and provider toggle. |
| app/src/main/res/layout/fragment_settings.xml | Replaces the previous “App Security” row with a chevron row leading to Security settings. |
| app/src/main/java/com/infomaniak/drive/ui/menu/settings/SettingsFragment.kt | Updates Settings click handling to navigate to the new Security settings screen. |
| app/src/main/java/com/infomaniak/drive/ui/menu/settings/SecuritySettingsFragment.kt | New fragment controlling app-lock entry and “Show in Files” provider toggle. |
| app/src/main/java/com/infomaniak/drive/ui/menu/settings/AppSecuritySettingsActivity.kt | Forces provider disable when enabling app lock. |
| app/src/main/java/com/infomaniak/drive/data/documentprovider/CloudStorageProvider.kt | Adds shared-pref flag + enforcement for disabled provider behavior and root refresh notifications. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1dc00e4 to
473369a
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8e03fb9 to
0fac7ca
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b4ac763 to
812f383
Compare
Prevents contentProviderSwitch from re-triggering its listener in onResume, avoiding redundant calls to CloudStorageProvider.setDisabled() and notifyRootsChanged().
…ing when disabled
… lock is disabled
Previously, the Content Provider was locked as soon as the app lock screen appeared, even if the user cancelled the password entry by pressing back. Now, the Content Provider is only locked if the lock process is completed successfully.
11018e6 to
08be97a
Compare
|



No description provided.