feat: Connectivity notification toggle to GameNative
TR
1d ago+50+50+01234567890123456789-1-1-0123456789
Description
Discord user demand shows that people like a option to be able to not view the Connectivity banner when deliberate.
Specific changes:
- Discovered PrefManager which stores settings (added value, booleanPreferencesKey, var to spec)
- Discovered Pluviamain. Added a '&&' check to ensure something is True for the intercept.
- Edited SettingsGroupInterface to enable Saveable
- Edited SettingsGroupInterface to add Settings option in Interface
- Edited strings.xml to include settings lines
- 'enable_network_launcher_connectivity_notification', 'settings_interface_network_connectivity'
- Default is set at True.
Testing:
Within the Settings section, there is Interface.
There is a new Title and Subtitle with the options:
"Launcher connectivity notification"
with "Toggle connectivity notification in the main launcher when Steam disconnects or reconnects."
- Open Settings
- Disable the option in Interface
- Disable Mobile Network
- The Banner does not appear.
Tested
- When doing things in the app, like opening a Tile, the Mobile Network reconnects automatically
- This does prevent Main Launcher from showing the Notification:
'Reconnecting to Steam
Disconnected from Steam'
External Phone Notifications are not part of the PR.
Recording
Type of Change
- Bug fix
- Performance / stability improvement
- Compatibility improvements
- Other (requires prior approval)
Checklist
- If I have access to
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed. - This change aligns with the current project scope (core functionality, stability, or performance). If not, it has been explicitly approved beforehand.
- I have attached a recording of the change.
- I have read and agree to the contribution guidelines in
CONTRIBUTING.md.
Summary by CodeRabbit
- New Features
- Added an Interface setting to enable or disable launcher notifications when Steam disconnects or reconnects. The setting is enabled by default and available in multiple languages.
- Connection notifications appear only when Steam credentials are stored and the setting is enabled. Turning the setting off hides these notifications; other conditions for the connection status banner remain unchanged.