Minor fixes
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
import { restoreBackup } from "../../services/backup";
|
||||
|
||||
export const getLibraryAction = (sort, filter) => async (dispatch) => {
|
||||
// console.log("1.", sort, filter);
|
||||
const res = await getLibrary(sort, filter);
|
||||
|
||||
dispatch({
|
||||
|
||||
@@ -152,7 +152,7 @@ const Chapter = ({ route, navigation }) => {
|
||||
});
|
||||
} else {
|
||||
Tts.stop();
|
||||
Tts.speak(escaped, {
|
||||
Tts.speak(text, {
|
||||
androidParams: {
|
||||
KEY_PARAM_STREAM: "STREAM_MUSIC",
|
||||
},
|
||||
@@ -570,22 +570,23 @@ const Chapter = ({ route, navigation }) => {
|
||||
>
|
||||
{htmlToText(chapter.chapterText)}
|
||||
</Text>
|
||||
{nextChapter && (
|
||||
<View
|
||||
|
||||
<View
|
||||
style={{
|
||||
marginTop: 32,
|
||||
marginBottom: 16,
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
style={{
|
||||
marginTop: 32,
|
||||
marginBottom: 16,
|
||||
color: reader.textColor,
|
||||
fontSize: 16,
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
style={{
|
||||
color: reader.textColor,
|
||||
fontSize: 16,
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
Finished: {chapterName}
|
||||
</Text>
|
||||
Finished: {chapterName}
|
||||
</Text>
|
||||
{nextChapter ? (
|
||||
<View
|
||||
style={{
|
||||
borderRadius: 8,
|
||||
@@ -620,8 +621,19 @@ const Chapter = ({ route, navigation }) => {
|
||||
</Text>
|
||||
</Pressable>
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
) : (
|
||||
<Text
|
||||
style={{
|
||||
color: reader.textColor,
|
||||
fontSize: 16,
|
||||
paddingVertical: 8,
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
There's no next chapter
|
||||
</Text>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
</TouchableWithoutFeedback>
|
||||
|
||||
@@ -37,13 +37,13 @@ const BackupSettings = ({ navigation }) => {
|
||||
onPress={restoreFullBackup}
|
||||
theme={theme}
|
||||
/>
|
||||
<List.Divider theme={theme} />
|
||||
{/* <List.Divider theme={theme} />
|
||||
<List.Item
|
||||
title="Restore old backup"
|
||||
description="Restore library from backup file of version v1.1.2 or lower"
|
||||
onPress={() => dispatch(restoreLibraryAction())}
|
||||
theme={theme}
|
||||
/>
|
||||
/> */}
|
||||
<List.InfoItem
|
||||
title="Create backup may not work on devices with Android 9 or lower."
|
||||
icon="information-outline"
|
||||
|
||||
@@ -2,7 +2,7 @@ export const cleanHtml = (html) => {
|
||||
let text = html;
|
||||
|
||||
if (!text) {
|
||||
return "Chapter is empty.\n\nReport if it's available in webview.'";
|
||||
return "Chapter is empty.\n\nReport if it's available in webview.";
|
||||
}
|
||||
|
||||
text = text
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
export const defaultCoverUri =
|
||||
"https://github.com/LNReader/lnreader-sources/blob/main/src/coverNotAvailable.jpg?raw=true";
|
||||
|
||||
export const Status = {
|
||||
ONGOING: "Ongoing",
|
||||
COMPLETED: "Completed",
|
||||
|
||||
@@ -2,7 +2,7 @@ const htmlToText = (html, options = {}) => {
|
||||
const { removeLineBreaks = true } = options;
|
||||
|
||||
if (!html) {
|
||||
return "Chapter is empty.\n\nReport if it's available in webview.'";
|
||||
return "Chapter is empty.\n\nReport if it's available in webview.";
|
||||
}
|
||||
|
||||
html = html.trim();
|
||||
|
||||
Reference in New Issue
Block a user