mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-11-23 23:57:23 +00:00
fix settings debug disappearance
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user