GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add configurable QS tile cycles and refresh the main UI by Dhangofa · Pull Request #12 · Dhangofa/NetToggle

Conversation

@Dhangofa

@Dhangofa Dhangofa commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

This PR completes Phase 4 of the NetToggle update by adding a configurable Quick Settings tile cycle and refreshing the main app interface.

Users can now choose an ordered cycle of two or three network modes. The selected order is preserved and used directly by the Quick Settings tile.

The update also removes the framework ActionBar, moves the app version into the main header, introduces compact segmented controls, and improves the overall light and dark theme presentation.

Configurable Quick Tile Cycle

  • Added a configurable Quick Settings tile cycle.
  • Added cycle options for:
    • 5G Only
    • 4G Only
    • Preferred 5G
    • Preferred 4G
  • Enforced a minimum of two selected modes.
  • Enforced a maximum of three selected modes.
  • Used selection order as the Quick Settings tile cycle order.
  • Added a live preview of the configured cycle sequence.
  • Added a selected-mode count indicator.
  • Preserved the configured cycle after reopening the app, rebooting, or updating the package.
  • Cleared the cached network state whenever the cycle configuration changes.
  • Used the first configured mode when the current network state is outside the selected cycle.

Quick Settings Tile Updates

  • Replaced the fixed tile cycle with the saved user-configured cycle.
  • Updated the unknown-state label to show the first configured target mode.
  • Fixed the active tile label to display the current network mode.
  • Limited the Tap to Set prompt to unknown tile states.
  • Prevented stale asynchronous readback from overriding a newer successful tile state.
  • Preserved active mode icons and command execution behavior.

Main UI Refresh

  • Removed the framework ActionBar.
  • Activated the custom light and dark NoActionBar themes.
  • Moved the application version into the main header as a compact pill.
  • Refined header spacing, title hierarchy, and application branding.
  • Added compact segmented controls for Execution Mode.
  • Added compact segmented controls for Target SIM.
  • Added a redesigned Quick Tile Cycle card.
  • Added a selected-mode count pill and cycle-order preview.
  • Refined card padding, margins, and vertical spacing.
  • Compacted the Developer section and social links.
  • Added reusable vector and selector resources for the refreshed interface.
  • Added theme-aware segmented control backgrounds and text colors.

New Files

  • cycle/TileCycleManager.java
  • ui/TileCycleUiController.java
  • res/layout/view_tile_cycle_card.xml
  • res/drawable/ic_refresh.xml
  • res/drawable/selector_segmented_tab.xml
  • res/drawable/shape_segmented_container.xml
  • res/color/color_segmented_text.xml

Updated Files

  • config/AppPreferences.java
  • MainActivity.java
  • NetworkTileService.java
  • activity_main.xml
  • AndroidManifest.xml
  • Light and dark color resources

Behavior Preserved

  • Root execution mode remains supported.
  • Shizuku execution mode remains supported.
  • Auto, SIM 1, and SIM 2 targeting remain supported.
  • Subscription IDs continue to be used for network mode readback.
  • Physical SIM slot indexes continue to be used when applying network modes.
  • Existing command execution and telephony modules remain unchanged.
  • Auto SIM detection warnings remain functional.
  • Cached tile-state behavior remains functional.
  • Existing four network modes remain unchanged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Dhangofa added 30 commits August 11, 2026 15:27
@Dhangofa
Added ShellValueParser for reusable shell-output parsing
6a69c62
@Dhangofa
Added SimResolver for subscription ID and physical-slot resolution
5b4995f
@Dhangofa
Added NetworkModeReader for preferred network mode readback
8341a08
@Dhangofa
Added NetworkModeController for applying selected network modes
1f28e25
@Dhangofa
Removed SIM resolution and telephony shell-command construction from …
2a7d448
…NetworkTileService

- Removed SIM resolution and telephony shell-command construction from NetworkTileService.
- Updated NetworkTileService to coordinate the modular telephony components.
- Preserved existing Target SIM, readback, switching, cache, label, icon, and Auto SIM error behavior.
@Dhangofa
Added ordered cycle persistence to AppPreferences
0bc4193
@Dhangofa
Added TileCycleManager for validating and navigating ordered tile cycles
c349fd0
@Dhangofa
Add Quick Tile Cycle configuration card
841c1b4
- Added a dedicated Quick Tile Cycle card.
- Added mode selectors for 5G Only, 4G Only, Preferred 5G, and Preferred 4G.
- Added selected-mode count display.
- Added a live preview of the configured cycle order.
- Reused the existing card, control, border, text, and brand styling.
- Kept the cycle card in a separate reusable layout resource.
@Dhangofa
Add Quick Tile Cycle configuration card
032f5bb
- Added a dedicated Quick Tile Cycle card.
- Added mode selectors for 5G Only, 4G Only, Preferred 5G, and Preferred 4G.
- Added selected-mode count display.
- Added a live preview of the configured cycle order.
- Reused the existing card, control, border, text, and brand styling.
- Kept the cycle card in a separate reusable layout resource.
@Dhangofa
Add tile cycle UI controller
450e9d6
- Added TileCycleUiController to keep cycle-selection logic out of MainActivity.
- Connected each cycle selector to its corresponding NetworkMode.
- Refreshed selector states from the saved ordered cycle.
- Blocked selections above the three-mode maximum.
- Blocked removals below the two-mode minimum.
- Restored the previous checkbox state after an invalid selection attempt.
- Added user feedback for minimum and maximum selection limits.
- Updated the selected count and cycle-order preview after each valid change.
@Dhangofa
Integrate tile cycle controls into MainActivity
0cbbcee
- Initialized TileCycleManager from the shared AppPreferences instance.
- Initialized TileCycleUiController after the activity layout and views were ready.
- Kept cycle configuration logic outside MainActivity.
- Preserved existing Root, Shizuku, Target SIM, warning, link, and lifecycle behavior.
@Dhangofa
Use configured cycle in NetworkTileService
a491a5c
- Initialized TileCycleManager inside NetworkTileService.
- Replaced the fixed four-mode cycle with the saved user-configured cycle.
- Used the first configured mode when the current state is not part of the selected cycle.
- Updated the unknown-state tile label to show the first configured target mode.
- Preserved command execution, SIM resolution, readback, caching, icons, and switching-state behavior.
@Dhangofa
Add Quick Tile Cycle card to main layout
b5e0b36
- Added the reusable Quick Tile Cycle card to the main app layout.
- Positioned the cycle configuration below the Execution Mode and Target SIM controls.
- Kept the Developer card below the new cycle section.
- Reused the existing spacing and card styling.
@Dhangofa
Prevent stale readback from overriding tile state
072f8c8
- Added a current-state check before applying asynchronous network mode readback.
- Ignored stale readback callbacks after a successful tile operation.
- Removed the redundant unknown-state UI update from failed readback.
- Prevented the configured first-mode prompt from overriding the active tile label.
- Preserved normal readback behavior when the cached state is still unknown.
@Dhangofa
Activated the custom NoActionBar light and dark themes from the appl…
665b767
…ication manifest
@Dhangofa
Removed framework ActionBar initialization from MainActivity
462eaf6
- Activated the custom NoActionBar theme through the application manifest.
- Removed framework ActionBar initialization from MainActivity.
- Removed the ActionBar-hosted version pill and title styling.
- Removed unused ActionBar-specific imports.
- Retained app version lookup for a future in-layout version display.
- Preserved status bar styling and all existing app behavior.
@Dhangofa
Added shape_segmented_container for new buttons
525b5bf
@Dhangofa
Added selector_segmented_tab for new buttons
4fe4922
@Dhangofa
Added color_segmented_text for new buttons
77fb2b1
@Dhangofa
Update activity_main to contain new buttons, shape, developer card
429638e
- New Button added
- Developer card minimize
- App version added
@Dhangofa
Added new icon reference for tile cycle
58b07e3
@Dhangofa
Added refresh/cycle vector icon for the tile cycle card
dc345d4
@Dhangofa
Fix issues
ba0c471
- Restore all six IDs expected by TileCycleUiController.
- Use CheckBox, not static TextView, for cycle options.
@Dhangofa
Bind appVersionText in MainActivity
7ab025b
@Dhangofa
Added Segment control colors
0f8616f
@Dhangofa
Added Segment control colors for night mode
652ed57
@Dhangofa
Remove hardcoded colors
6510f05
@Dhangofa
Remove hardcoded colors
5bd7c79
@Dhangofa
Remove hardcoded colors and change location of color_segmented_text.xml
57d462d
@Dhangofa
Update set status to change color
3549a48
Dhangofa added 4 commits August 11, 2026 20:31
@Dhangofa
fix closing tags </selector>
396018a
@Dhangofa
Refine main screen spacing and version pill
6d9e557
- Reduced excessive spacing in the header and Quick Settings hint.
- Added consistent 12dp spacing between primary cards.
- Reduced outer horizontal and bottom padding for a more compact layout.
- Refined title, version pill, and description spacing.
- Added consistent minimum heights to segmented controls.
- Removed redundant Developer card top margin.
- Preserved the existing responsive ScrollView layout and visual hierarchy.
@Dhangofa
Fix: Show active network mode in QS tile label
43929f5
- Fixed the active QS tile label to display the current network mode.
- Limited the “Tap to Set” prompt to the unknown tile state.
- Kept the first configured cycle mode as the unknown-state target.
- Preserved dynamic icons, configured cycle order, caching, and asynchronous readback protection.
@Dhangofa
Merge branch 'main' into dev
c1604a7
@Dhangofa
Dhangofa merged commit 021b21c into main Aug 11, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Dhangofa
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.