Skip to content

refactor(utils): return Boolean, improve exception handling and UX fo…#16453

Draft
joshtrichards wants to merge 4 commits intomasterfrom
jtr/refactor-BatteryOptimizationHelper
Draft

refactor(utils): return Boolean, improve exception handling and UX fo…#16453
joshtrichards wants to merge 4 commits intomasterfrom
jtr/refactor-BatteryOptimizationHelper

Conversation

@joshtrichards
Copy link
Member

…r battery optimization launcher

Adds a useful Boolean return value
Improves maintainability and modularity
Narrows exception handling to only expected failures Optimizes user navigation UX

  • Tests written, or not not needed

…r battery optimization launcher

Adds a useful Boolean return value
Improves maintainability and modularity
Narrows exception handling to only expected failures
Optimizes user navigation UX

Signed-off-by: Josh <josh.t.richards@gmail.com>
* Show an error message if settings cannot be opened
* Manual handle the positive button click to ensure the dialog stays 
visible if there's an error

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant