8000 Implement quick settings toggle button by ameerhossein · Pull Request #25 · bepass-org/oblivion · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement quick settings toggle button #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

ameerhossein
Copy link
Contributor

This pull request introduces a new feature to Oblivion – Quick Settings Connection Toggle Button.
Quick Settings or Tile Buttons, provide users with convenient access to easily connect or disconnect through notification panel without opening the app itself.
MainActivity and ObvilionVpnService classes were heavily refactored. The notification tile button needed to be in sync with MainActivity button. They're now using observer pattern done through message passing.
The connection state now resides inside ObvilionVpnService and other components interested in connection status can observe it by registering an observer. This is done to have a single "source-of-truth" for the connection state.
The new pattern is tested on several Samsung devices running Android 11-14 and works perfectly. However this is Android's world. A feature working great on a phone might work terrible on another OEM. I think it's better to have it tested on other OEMs too.

photo_2024-02-12_06-27-48
photo_2024-02-12_06-27-51

@uoosef
Copy link
Contributor
uoosef commented Feb 12, 2024

thanx for pr i will look into it

@uoosef uoosef merged commit 1b6a707 into bepass-org:main Feb 12, 2024
This was referenced Feb 13, 2024
@ameerhossein ameerhossein deleted the quick-settings-toggle-button branch February 13, 2024 11:51
@mmrabbani
Copy link
Contributor

@ameerhossein
Thank you very much. Your PR is so helpful. I suggest the toggle icon would be the same as the app icon, So the user can find the toggle faster.

Sign up for free to join this conve 5C45 rsation 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.

4 participants
0