fix settings debug disappearance

This commit is contained in:
Ida Delphine authored and Tobi committed 2026-09-17 15:51:13 +02:00
1 parent 9f58974e08
commit d48831777c
6 files changed
+10 -10

No files matched your search

@@ -16,8 +16,8 @@ import org.koin.core.annotation.Singleton
@Singleton(binds = [BuildInfo::class])
class AndroidBuildInfo(private val context: Context) : BuildInfo {
override val isDebug: Boolean =
context.applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE != 0
override val isDebug: Boolean
get() = (context.applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE != 0) || !isReleaseApk
@get:SuppressLint("NewApi")
@OptIn(ExperimentalStdlibApi::class)