AuthViewModel: Search in custom tab by default in anonymous accounts
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -88,6 +88,12 @@ class AuthViewModel(application: Application) : BaseAndroidViewModel(application
|
|||||||
Preferences.PREFERENCE_INSECURE_ANONYMOUS
|
Preferences.PREFERENCE_INSECURE_ANONYMOUS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Preferences.putBoolean(
|
||||||
|
getApplication(),
|
||||||
|
Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
|
||||||
if (insecure) {
|
if (insecure) {
|
||||||
buildInSecureAnonymousAuthData()
|
buildInSecureAnonymousAuthData()
|
||||||
} else {
|
} else {
|
||||||
@@ -287,4 +293,4 @@ class AuthViewModel(application: Application) : BaseAndroidViewModel(application
|
|||||||
private fun updateStatus(status: String) {
|
private fun updateStatus(status: String) {
|
||||||
liveData.postValue(AuthState.Status(status))
|
liveData.postValue(AuthState.Status(status))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user