-
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
Open
valjapan
wants to merge
15
commits into
DroidKaigi:master
Choose a base branch
from
valjapan:master
base: master
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.
+11
−0
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
40d6b9e
#104 Issue resolved
valjapan f23c164
fix comment
valjapan 110986b
check
valjapan 178d3e9
fix conflict
valjapan 10e117d
Merge pull request #1 from yukiyuki961/fix_issue_104_hardly_see_the_n…
valjapan f1f1dc6
fix can not see status bar
valjapan 81e00ec
Avoid build version warning
valjapan 12fbbdd
Merge pull request #2 from yukiyuki961/fix_issue_104_hardly_see_the_n…
valjapan a0b8c15
conflict resolbe
valjapan 84baae1
fix conflict
valjapan f1f67c6
Merge remote-tracking branch 'upstream/master'
valjapan 82d4cf5
fix issue and fix conflict
valjapan 8d4cb72
Merge branch 'master' of github.com:DroidKaigi/conference-app-2020
valjapan 56e4623
fix conflict
valjapan a08be2a
Merge pull request #3 from yukiyuki961/fix_issue_104_hardly_see_the_n…
valjapan 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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,6 +7,7 @@ import androidx.core.view.doOnNextLayout | |||||
import androidx.fragment.app.Fragment | ||||||
import androidx.lifecycle.LifecycleOwner | ||||||
import androidx.lifecycle.LiveData | ||||||
import androidx.lifecycle.distinctUntilChanged | ||||||
import androidx.lifecycle.observe | ||||||
import androidx.navigation.NavOptions | ||||||
import androidx.navigation.fragment.findNavController | ||||||
|
@@ -44,6 +45,7 @@ import io.github.droidkaigi.confsched2020.session.ui.widget.SessionDetailItemDec | |||||
import io.github.droidkaigi.confsched2020.system.ui.viewmodel.SystemViewModel | ||||||
import io.github.droidkaigi.confsched2020.ui.animation.MEDIUM_EXPAND_DURATION | ||||||
import io.github.droidkaigi.confsched2020.ui.transition.fadeThrough | ||||||
import io.github.droidkaigi.confsched2020.ui.widget.SystemUiManager | ||||||
import javax.inject.Inject | ||||||
import javax.inject.Provider | ||||||
|
||||||
|
@@ -83,11 +85,20 @@ class SessionDetailFragment : Fragment(R.layout.fragment_session_detail), Inject | |||||
@Inject | ||||||
lateinit var sessionDetailMaterialItemFactory: SessionDetailMaterialItem.Factory | ||||||
|
||||||
private val navigationBarColors: SystemUiManager by lazy { | ||||||
SystemUiManager(context!!) | ||||||
} | ||||||
|
||||||
override fun onCreate(savedInstanceState: Bundle?) { | ||||||
super.onCreate(savedInstanceState) | ||||||
sharedElementEnterTransition = fadeThrough().apply { | ||||||
duration = MEDIUM_EXPAND_DURATION | ||||||
} | ||||||
|
||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
} | ||||||
} | ||||||
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||||||
|
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.
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