mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-06-02 11:26:14 +02:00
24 lines
624 B
Kotlin
24 lines
624 B
Kotlin
package org.microg.gms.auth
|
|
|
|
import android.content.Context
|
|
import org.microg.gms.settings.SettingsContract
|
|
import org.microg.gms.settings.SettingsContract.Auth
|
|
|
|
object AuthPrefs {
|
|
|
|
@JvmStatic
|
|
fun isTrustGooglePermitted(context: Context): Boolean {
|
|
return SettingsContract.getSettings(context, Auth.CONTENT_URI, arrayOf(Auth.TRUST_GOOGLE)) { c ->
|
|
c.getInt(0) != 0
|
|
}
|
|
}
|
|
|
|
@JvmStatic
|
|
fun isAuthVisible(context: Context): Boolean {
|
|
return SettingsContract.getSettings(context, Auth.CONTENT_URI, arrayOf(Auth.VISIBLE)) { c ->
|
|
c.getInt(0) != 0
|
|
}
|
|
}
|
|
|
|
}
|