Skip to content

Commit

Permalink
fix: font cannot be changed in reader mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Jul 1, 2024
1 parent 203efcd commit 6bf1f2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class SettingActivity : ComponentActivity(), KoinComponent {
MyTheme {

val backStackEntry = navController.currentBackStackEntryAsState()
val currentScreen = valueOf(backStackEntry?.value?.destination?.route ?: Main.name)
val currentScreen = valueOf(backStackEntry.value?.destination?.route ?: Main.name)

Scaffold(
modifier = Modifier.semantics {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1081,9 +1081,6 @@ open class NinjaWebView(
document.body.outerHTML = createHtmlBody(article)
// change font type
var bodyClasses = document.body.classList;
bodyClasses.add("serif");
document.getElementsByName('viewport')[0].setAttribute('content', 'width=device-width');
"""

Expand Down

0 comments on commit 6bf1f2f

Please sign in to comment.