fixup! Partial revert: AuthViewModel: Search in custom tab by default in anonymous accounts

This commit is contained in:
Aayush Gupta
2023-06-16 14:33:00 +05:30
parent ef3f2f9e49
commit abd0632ebd
4 changed files with 0 additions and 9 deletions

View File

@@ -199,7 +199,6 @@ class AccountActivity : BaseActivity() {
B.btnGoogle.addOnClickListener {
if (VM.liveData.value != AuthState.Fetching) {
B.btnGoogle.updateProgress(true)
Preferences.putBoolean(this, Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT, false)
val intent = Intent(this, GoogleActivity::class.java)
startForResult.launch(intent, getEmptyActivityAnimation())
}

View File

@@ -133,7 +133,6 @@ abstract class BaseActivity : AppCompatActivity(), NetworkProvider.NetworkListen
}
fun openGoogleActivity() {
Preferences.putBoolean(this, Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT, false)
val intent = Intent(this, GoogleActivity::class.java)
startActivity(
intent,

View File

@@ -228,7 +228,6 @@ class SplashActivity : BaseActivity() {
B.btnGoogle.addOnClickListener {
if (VM.liveData.value != AuthState.Fetching) {
B.btnGoogle.updateProgress(true)
Preferences.putBoolean(this, Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT, false)
val intent = Intent(this, GoogleActivity::class.java)
startForResult.launch(intent, getEmptyActivityAnimation())
}

View File

@@ -90,12 +90,6 @@ class AuthViewModel(application: Application) : BaseAndroidViewModel(application
Preferences.PREFERENCE_INSECURE_ANONYMOUS
)
Preferences.putBoolean(
getApplication(),
Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT,
false
)
if (insecure) {
buildInSecureAnonymousAuthData()
} else {