Repository navigation
Migrate settings to compose+coroutines - #7055
Merged
Merged
Conversation
Replace the view based SettingsActivity with a Compose screen backed by SettingsViewModel, which exposes a single StateFlow and one-off events. Server calls move to SettingsRepository using NcApiCoroutines, device state is read off the main thread by DeviceStateReader, and the account is observed via UserManager.userFlow instead of LiveData and RxJava. - Replace SetPhoneNumberDialogFragment and the MaterialAlertDialogs with Compose dialogs; the phone number dialog now shows the error instead of closing - Request permissions with Activity Result APIs - Show the intended "wrong account" message for servers without Talk - Remove the now unused read/typing privacy preferences, blinkDrawable, ContactAddressBookWorker.checkPermission and unused strings - Add SettingsViewModel unit tests Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
- Remove accounts via AccountRemover in the application scope, so the app still restarts after the settings screen closes, and keep the screen open while its account is being removed - Ignore selecting the current proxy type, which reset a custom port - Send read and typing status changes one at a time and revert failed ones to the value the server confirmed last - Load the avatar with the Authorization header - Apply the incognito keyboard setting to Compose text fields via IncognitoKeyboard - Reset the screen lock timeout when the device lock is not secure - Keep the state update free of side effects - Store proxy fields when editing ends instead of on every keystroke - Compute whether the proxy is enabled once in the view model - Remove the unused NcApi.getUserData Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
- Ignore a cancelled client certificate choice instead of erasing the stored certificate - Send read and typing status changes in the application scope, so closing the screen doesn't cancel them, and sync the capabilities after a successful change - Show the account message above the list, so it is shown and consumed also when the screen opens scrolled to the notification settings - Store "No proxy" as the literal RestModule expects and treat the translated label stored by older versions as no proxy - Show snackbars in their own coroutine, so later events don't wait - Consume the account message outside of the state update - Reuse User.getCredentials() - Inject the I/O dispatcher, so tests control preference writes Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
The dialog had no buttons, which left an empty button row at its bottom. Selecting an option still applies it right away. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
The setting was read once when the screen was composed, so turning the app switcher on or off in the settings only took effect after a restart of the app. It is now read again on resume and observed by the screen, like the notification warning. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
mahibi
force-pushed
the
migrateSettingsToCompose
branch
from
November 17, 2026 10:08
4813c34 to
458cbfb
Compare
mahibi
marked this pull request as ready for review
November 17, 2026 10:50
3 of 8 tasks
Contributor
Contributor
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
rapterjet2004
approved these changes
Nov 17, 2026
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
This PR also fixes the annoying behavior that the app was restarted after a dark/light theme change. The theme is now changed on the fly.
Testing
🖼️ Screenshots
🏚️ Before
🏡 After
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)