Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Jan 25, 2024
1 parent d05e8a3 commit 36957e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ abstract class TwoPaneFragment : Fragment() {
val hasOpened = slidingPaneLayout.openPaneNoAnimation()
if (hasOpened) {
updateDrawerLockMode()
(requireActivity() as MainActivity).window.statusBarColor = requireContext().getColor(R.color.backgroundColor)
requireActivity().window.statusBarColor = requireContext().getColor(R.color.backgroundColor)
}
} else {
resetPanes()
Expand Down

0 comments on commit 36957e4

Please sign in to comment.