Skip to content

Commit

Permalink
Merge/release 7.45 to main (#1294)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Chowning <[email protected]>
  • Loading branch information
ashiagr and mchowning authored Aug 21, 2023
1 parent 98a054a commit e6b8349
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,16 @@ class EpisodeFragment : BaseFragment() {
get() = if (forceDarkTheme && theme.isLightTheme) Theme.ThemeType.DARK else theme.activeTheme

override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
binding = FragmentEpisodeBinding.inflate(inflater, container, false)
showNotesFormatter = if (!forceDarkTheme || theme.isDarkTheme) {
createShowNotesFormatter(requireContext())
val themeResId = if (!forceDarkTheme || theme.isDarkTheme) {
activeTheme.resourceId
} else {
val context = ContextThemeWrapper(requireContext(), R.style.ThemeDark)
createShowNotesFormatter(context)
R.style.ThemeDark
}
val contextThemeWrapper = ContextThemeWrapper(requireContext(), themeResId)
val localInflater = inflater.cloneInContext(contextThemeWrapper)
binding = FragmentEpisodeBinding.inflate(localInflater, container, false)

showNotesFormatter = createShowNotesFormatter(contextThemeWrapper)

statusBarColor = StatusBarColor.Custom(
context?.getThemeColor(R.attr.primary_ui_01) ?: Color.WHITE, theme.isDarkTheme
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Version Information for Vanilla / Release builds
versionName=7.45
versionCode=9124
versionCode=9128

0 comments on commit e6b8349

Please sign in to comment.