From 07999b0c2d1f7fc3fe4a81a20f275c3193a3bdfe Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 26 May 2020 21:34:44 -0400 Subject: [PATCH] similar updates that i made in neko --- .../tachiyomi/util/system/DatabaseExtensions.kt | 16 ++++------------ app/src/main/res/layout/reader_activity.xml | 3 ++- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/DatabaseExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/DatabaseExtensions.kt index 94c6fdf3b5..11839005e1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/DatabaseExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/DatabaseExtensions.kt @@ -7,18 +7,10 @@ import com.pushtorefresh.storio.sqlite.operations.put.PreparedPutObject import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext -suspend fun PreparedGetListOfObjects.executeOnIO(): List { - return withContext(Dispatchers.IO) { executeAsBlocking() } -} +suspend fun PreparedGetListOfObjects.executeOnIO(): List = withContext(Dispatchers.IO) { executeAsBlocking() } -suspend fun PreparedGetObject.executeOnIO(): T? { - return withContext(Dispatchers.IO) { executeAsBlocking() } -} +suspend fun PreparedGetObject.executeOnIO(): T? = withContext(Dispatchers.IO) { executeAsBlocking() } -suspend fun PreparedPutObject.executeOnIO() { - withContext(Dispatchers.IO) { executeAsBlocking() } -} +suspend fun PreparedPutObject.executeOnIO() = withContext(Dispatchers.IO) { executeAsBlocking() } -suspend fun PreparedPutCollectionOfObjects.executeOnIO() { - withContext(Dispatchers.IO) { executeAsBlocking() } -} +suspend fun PreparedPutCollectionOfObjects.executeOnIO() = withContext(Dispatchers.IO) { executeAsBlocking() } diff --git a/app/src/main/res/layout/reader_activity.xml b/app/src/main/res/layout/reader_activity.xml index 32281688bc..09e049db06 100644 --- a/app/src/main/res/layout/reader_activity.xml +++ b/app/src/main/res/layout/reader_activity.xml @@ -37,7 +37,8 @@ + android:layout_height="match_parent" + android:visibility="gone" >