-
Notifications
You must be signed in to change notification settings - Fork 409
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
Fix statusBar color changes on modal pages #2413
Open
pictos
wants to merge
14
commits into
main
Choose a base branch
from
pj/fix-status-bar-on-modal
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.
+320
−6
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0630c5c
create services for DialogFragment
pictos 0a7d0c8
register the service on android during the builder phase
pictos 410fe31
move interface to Interfaces folder
pictos 2364d10
move services to CommunityToolkit.Maui
pictos 29aac74
add option to not use the default MCT impl
pictos 1e2142f
move the registration bits into to CommunityToolkit.Maui project
pictos 0e38c75
removed files
pictos b2fa42f
code cleanup
pictos 03eb3cf
add trace
pictos d7a53c7
remove debug assert
pictos 048a024
Update Naming
brminnick 6704cd7
Move to `CommunityToolkit.Maui.Core`
brminnick 5753c2d
`dotnet format`
brminnick 6e45f20
`dotnet format`
brminnick 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 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 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 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
2 changes: 1 addition & 1 deletion
2
.../Services/DialogFragmentService.shared.cs → .../Services/DialogFragmentService.shared.cs
This file contains 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
4 changes: 1 addition & 3 deletions
4
.../Services/MCTFragmentLifecycle.android.cs → ...vices/FragmentLifecycleManager.android.cs
This file contains 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 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 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.
@brminnick we shouldn't throw here, since there's no way for devs to catch this exception. I used
Debug.Assert
because it's what the runtime/sdk uses to safe check for null . But here you're checking against a type which can be false and throw this exception.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.
Using
Debug.Assert()
is a bit of an anti-pattern because it only works when building in Debug configuration:This means that when users consume our library and the value of
dialog.Window
isnull
, the following code in Release builds is guaranteed to throw an unhelpfulNullReferenceException
:In what scenario would this code be executed called and
dialog.Window
also be null? If this scenario exists, I agree that we should implement a solution.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.
I think just returning is enough, the only scenario I can imagine that will happening is when the app is backgrounded or is moving into background.