Skip to content

Settings Changes Not Reflected in UI Without Manual Restart #280

@Mehrad25Software

Description

@Mehrad25Software

Method: applySettings() in MainViewModel.java

Description:
When settings are changed through applySettings() method (theme, language, etc.), the UI does not immediately reflect these changes. User must manually restart the app to see the changes take effect.

Steps to Reproduce:

  1. Open app settings
  2. Change theme from light to dark (or vice versa)
  3. Return to main screen
  4. Notice UI still shows old theme

Expected Behavior:
UI should immediately update to reflect new settings without requiring app restart.

Actual Behavior:
Settings are saved but UI doesn't update until app is manually restarted.

Proposed Fix
Emit an explicit UI update signal or trigger activity recreation after applying settings:

uiState.setValue(new MainUiState(visibilityMode, startFragmentId, changedTheme || true));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions