-
Notifications
You must be signed in to change notification settings - Fork 326
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
#104 Fixed navigationbar on detail screen. #542
base: master
Are you sure you want to change the base?
Conversation
…avigation_bar_at_sessionn_detail_screen fix conflict
…avigation_bar_at_sessionn_detail_screen Avoid build version warning
@@ -99,6 +100,10 @@ class SessionDetailFragment : DaggerFragment() { | |||
container, | |||
false | |||
) | |||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { | |||
activity?.window?.decorView?.systemUiVisibility = |
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.
Thanks!
We are using SystemUiManager class. can you check it? 🙏
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.
@takahirom
sorry. I was busy working and couldn't help.
Unfortunately I couldn't call SystemUiManager.
Could you give me any advice?
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.
Of course!
How about moving SystemUiManager to corecomponet?
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.
@takahirom
This is solved using SystemUiManager! Thank you for the advice!
commit a08be2a
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.
Thank you so much! The approach looks good. Could you please address only one point which was from takahirom? ref: https://github.com/DroidKaigi/conference-app-2020/pull/542/files#r370191036
Sorry for the late resolution of the issue. |
…avigation_bar_at_sessionn_detail_screen Fix issue 104 hardly see the navigation bar at sessionn detail screen
Your apk has been deployed to https://deploygate.com/distributions/dc687d5465b94fd172d3794aa7a964d29a26cddd. Anyone can try your changes via the link. Generated by 🚫 Danger |
|
||
navigationBarColors.systemUiVisibility.distinctUntilChanged().observe(this) { | ||
activity?.window?.decorView?.systemUiVisibility = | ||
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
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.
Field requires API level 23 (current min is 21): android.view.View#SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
|
||
navigationBarColors.systemUiVisibility.distinctUntilChanged().observe(this) { | ||
activity?.window?.decorView?.systemUiVisibility = | ||
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
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.
Field requires API level 26 (current min is 21): android.view.View#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR |
No error was reported but at least one warning was found. Generated by 🚫 Danger |
Since I did not push my master branch, I will push again.
Here is the previous pull request.(#461)
Issue
Overview (Required)
Notes
systemUiVisibility
. Thank you for the advice.Screenshot