-
-
Notifications
You must be signed in to change notification settings - Fork 277
Power page foundation #2618
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
Open
anjani-1
wants to merge
21
commits into
celzero:main
Choose a base branch
from
anjani-1:codex/power-page-foundation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Power page foundation #2618
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1450e55
Add Power page product model
anjani-1 bf0bdd0
Add initial Power tab
anjani-1 000ec89
Add Active Profiles screen
anjani-1 9d717aa
Add Discover Profiles screen
anjani-1 f9c9a52
Add local curated profile catalog
anjani-1 e7bff92
Add local saved profile snapshots
anjani-1 96dc626
Activate Smooth browsing from uBO defaults
anjani-1 d3afaaf
Import uBO smooth browsing domain subset
anjani-1 2d67fb6
Import explicit uBO IP rules for Smooth browsing
anjani-1 b796efe
Add Power profile detail and toggle flow
anjani-1 8dfd9da
Add Power profile import and export foundation
anjani-1 0abf26b
Bridge Power profiles with Rethink blocklists
anjani-1 52057ef
Add profile section cards and Rethink detail pages
anjani-1 d15ba02
Add App Horse profile app blocklist flow
anjani-1 fae5a24
Document hosted Power profile format
anjani-1 e0713d2
Build Power profile foundation and native blocklist flow
anjani-1 f79c892
Polish Power profiles and fix native activation flow
anjani-1 04c22e9
Wire up Deep Focus curated profile
anjani-1 a39d5ee
Add blocklists to Safe and Beautiful Internet profile
anjani-1 b7c0da9
Implement merged active profile overrides
anjani-1 f22c1bc
Fix active profile source aggregation
anjani-1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/src/full/java/com/celzero/bravedns/ui/PowerDestinationPolicy.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Copyright 2026 RethinkDNS and its authors | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * https://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package com.celzero.bravedns.ui | ||
|
|
||
| import com.celzero.bravedns.R | ||
|
|
||
| object PowerDestinationPolicy { | ||
| fun isDeepPowerDestination(destinationId: Int): Boolean { | ||
| return destinationId == R.id.activeProfilesFragment || | ||
| destinationId == R.id.discoverProfilesFragment || | ||
| destinationId == R.id.powerProfileDetailFragment || | ||
| destinationId == R.id.powerProfileEntriesFragment || | ||
| destinationId == R.id.powerProfileAppsFragment | ||
| } | ||
|
|
||
| fun topLevelMenuItem(destinationId: Int): Int? { | ||
| return when (destinationId) { | ||
| R.id.powerFragment, R.id.homeScreenFragment -> R.id.powerFragment | ||
| R.id.summaryStatisticsFragment -> R.id.summaryStatisticsFragment | ||
| R.id.configureFragment -> R.id.configureFragment | ||
| R.id.aboutFragment -> R.id.aboutFragment | ||
| else -> null | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppInfoActivityno longer callshandleFrostEffectIfNeeded(persistentState.theme)inonCreate(), while most other activities still do. This can cause inconsistent UI theming/blur behavior for the App Details screen. Consider restoring the call for consistency with the rest of the app.