~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
52bc28f0
—
Peter John 1 year ago
fix share issue
app/src/main/java/dev/pyrossh/onlyBible/ChapterScreen.kt
CHANGED
|
@@ -204,7 +204,7 @@ fun ChapterScreen(
|
|
|
204
204
|
containerColor = Color.Transparent,
|
|
205
205
|
contentPadding = PaddingValues(0.dp),
|
|
206
206
|
modifier = Modifier
|
|
207
|
-
.height(
|
|
207
|
+
.height(104.dp),
|
|
208
208
|
actions = {
|
|
209
209
|
Surface(
|
|
210
210
|
color = Color.Transparent,
|
|
@@ -262,14 +262,12 @@ fun ChapterScreen(
|
|
|
262
262
|
// )
|
|
263
263
|
// }
|
|
264
264
|
IconButton(onClick = {
|
|
265
|
-
scope.launch(Dispatchers.IO) {
|
|
266
|
-
|
|
265
|
+
shareVerses(
|
|
267
|
-
|
|
266
|
+
context,
|
|
268
|
-
|
|
267
|
+
selectedVerses.sortedBy { it.verseIndex })
|
|
269
|
-
}
|
|
270
268
|
}) {
|
|
271
269
|
Icon(
|
|
272
|
-
modifier = Modifier.size(
|
|
270
|
+
modifier = Modifier.size(32.dp),
|
|
273
271
|
imageVector = Icons.Outlined.Share,
|
|
274
272
|
contentDescription = "Share",
|
|
275
273
|
)
|
app/src/main/java/dev/pyrossh/onlyBible/Verse.kt
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
package dev.pyrossh.onlyBible
|
|
2
2
|
|
|
3
|
+
import android.os.Parcelable
|
|
4
|
+
import kotlinx.parcelize.Parcelize
|
|
5
|
+
import kotlinx.serialization.Serializable
|
|
6
|
+
|
|
3
7
|
const val BOOKS_COUNT = 66;
|
|
4
8
|
|
|
5
9
|
val engTitles = listOf(
|
|
@@ -71,6 +75,8 @@ val engTitles = listOf(
|
|
|
71
75
|
"Revelation",
|
|
72
76
|
)
|
|
73
77
|
|
|
78
|
+
@Serializable
|
|
79
|
+
@Parcelize
|
|
74
80
|
data class Verse(
|
|
75
81
|
val bookIndex: Int,
|
|
76
82
|
val bookName: String,
|
|
@@ -78,7 +84,7 @@ data class Verse(
|
|
|
78
84
|
val verseIndex: Int,
|
|
79
85
|
val heading: String,
|
|
80
86
|
val text: String,
|
|
81
|
-
) {
|
|
87
|
+
) : Parcelable {
|
|
82
88
|
|
|
83
89
|
fun toSSML(): String {
|
|
84
90
|
return """
|