This commit is contained in:
HapeLee committed 2025-06-05 01:26:56 +08:00
1 parent 4d993cfba8
commit 5bf4a21e69
4 files changed
+8 -32

No files matched your search

@@ -34,6 +34,7 @@ import androidx.annotation.DrawableRes
import androidx.core.content.ContextCompat
import androidx.core.content.FileProvider
import androidx.core.content.edit
import androidx.datastore.preferences.preferencesDataStore
import androidx.preference.PreferenceManager
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel
import io.legato.kazusa.R
@@ -76,7 +77,6 @@ fun Context.startActivityForBook(
startActivity(intent)
}
inline fun <reified T : Service> Context.startService(configIntent: Intent.() -> Unit = {}) {
startService(Intent(this, T::class.java).apply(configIntent))
}
@@ -414,3 +414,6 @@ val Context.channel: String
val Context.isDebuggable: Boolean
get() = applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE != 0
val Context.dataStore by preferencesDataStore(name = "settings")