mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-05 11:05:40 +00:00
feat: disable screen security default if we are building a debug build for UI testing purposes (#894)
This commit is contained in:
parent
0dbe96d723
commit
6ad00dab9b
@ -11,6 +11,7 @@ import dagger.hilt.android.qualifiers.ApplicationContext
|
|||||||
import kotlinx.coroutines.channels.BufferOverflow
|
import kotlinx.coroutines.channels.BufferOverflow
|
||||||
import kotlinx.coroutines.flow.MutableSharedFlow
|
import kotlinx.coroutines.flow.MutableSharedFlow
|
||||||
import kotlinx.coroutines.flow.asSharedFlow
|
import kotlinx.coroutines.flow.asSharedFlow
|
||||||
|
import org.session.libsession.BuildConfig
|
||||||
import org.session.libsession.R
|
import org.session.libsession.R
|
||||||
import org.session.libsession.utilities.TextSecurePreferences.Companion.CALL_NOTIFICATIONS_ENABLED
|
import org.session.libsession.utilities.TextSecurePreferences.Companion.CALL_NOTIFICATIONS_ENABLED
|
||||||
import org.session.libsession.utilities.TextSecurePreferences.Companion.SHOWN_CALL_NOTIFICATION
|
import org.session.libsession.utilities.TextSecurePreferences.Companion.SHOWN_CALL_NOTIFICATION
|
||||||
@ -608,7 +609,7 @@ interface TextSecurePreferences {
|
|||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun isScreenSecurityEnabled(context: Context): Boolean {
|
fun isScreenSecurityEnabled(context: Context): Boolean {
|
||||||
return getBooleanPreference(context, SCREEN_SECURITY_PREF, true)
|
return getBooleanPreference(context, SCREEN_SECURITY_PREF, !BuildConfig.DEBUG)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getLastVersionCode(context: Context): Int {
|
fun getLastVersionCode(context: Context): Int {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user