-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Prevent calling setStatusBarColor on API_35 and update related documentation
#180062
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
Conversation
Updated deprecated method documentation and replaced direct API level reference with static import.
|
/gemini review |
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.
Code Review
This pull request updates FlutterFragmentActivity to handle the deprecation of setStatusBarColor in Android 15 (API 35). A conditional check is added to ensure this method is only called on SDK versions lower than 35. The Javadoc for the deprecated method has also been updated to be more descriptive. My review points out a minor grammatical error in the documentation and suggests refactoring a magic number to a constant to improve code readability.
...src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterFragmentActivity.java
Outdated
Show resolved
Hide resolved
...src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterFragmentActivity.java
Show resolved
Hide resolved
…/android/FlutterFragmentActivity.java Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
setStatusBarColor on API_35 and update related documentation
camsim99
left a comment
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.
LGTM, just one comment on wording in the deprecation note!
...src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterFragmentActivity.java
Outdated
Show resolved
Hide resolved
Updated deprecation notice to include link to WindowInsetsController documentation.
|
autosubmit label was removed for flutter/flutter/180062, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR. |
|
autosubmit label was removed for flutter/flutter/180062, because - The status or check suite Mac tool_integration_tests_2_5 has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
autosubmit label was removed for flutter/flutter/180062, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
…lated documentation (flutter/flutter#180062)
see : #165327 (comment)
towards #165327 (see https://discord.com/channels/608014603317936148/846507907876257822/1451187625116569660)
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.