mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 19:11:49 +01:00
similar updates that i made in neko
This commit is contained in:
parent
cac18f16ab
commit
07999b0c2d
@ -7,18 +7,10 @@ import com.pushtorefresh.storio.sqlite.operations.put.PreparedPutObject
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
suspend fun <T> PreparedGetListOfObjects<T>.executeOnIO(): List<T> {
|
||||
return withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
}
|
||||
suspend fun <T> PreparedGetListOfObjects<T>.executeOnIO(): List<T> = withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
|
||||
suspend fun <T> PreparedGetObject<T>.executeOnIO(): T? {
|
||||
return withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
}
|
||||
suspend fun <T> PreparedGetObject<T>.executeOnIO(): T? = withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
|
||||
suspend fun <T> PreparedPutObject<T>.executeOnIO() {
|
||||
withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
}
|
||||
suspend fun <T> PreparedPutObject<T>.executeOnIO() = withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
|
||||
suspend fun <T> PreparedPutCollectionOfObjects<T>.executeOnIO() {
|
||||
withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
}
|
||||
suspend fun <T> PreparedPutCollectionOfObjects<T>.executeOnIO() = withContext(Dispatchers.IO) { executeAsBlocking() }
|
||||
|
@ -37,7 +37,8 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/reader_menu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone" >
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/appbar"
|
||||
|
Loading…
Reference in New Issue
Block a user