fixup! Partial revert: AuthViewModel: Search in custom tab by default in anonymous accounts
This commit is contained in:
@@ -199,7 +199,6 @@ class AccountActivity : BaseActivity() {
|
|||||||
B.btnGoogle.addOnClickListener {
|
B.btnGoogle.addOnClickListener {
|
||||||
if (VM.liveData.value != AuthState.Fetching) {
|
if (VM.liveData.value != AuthState.Fetching) {
|
||||||
B.btnGoogle.updateProgress(true)
|
B.btnGoogle.updateProgress(true)
|
||||||
Preferences.putBoolean(this, Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT, false)
|
|
||||||
val intent = Intent(this, GoogleActivity::class.java)
|
val intent = Intent(this, GoogleActivity::class.java)
|
||||||
startForResult.launch(intent, getEmptyActivityAnimation())
|
startForResult.launch(intent, getEmptyActivityAnimation())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ abstract class BaseActivity : AppCompatActivity(), NetworkProvider.NetworkListen
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun openGoogleActivity() {
|
fun openGoogleActivity() {
|
||||||
Preferences.putBoolean(this, Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT, false)
|
|
||||||
val intent = Intent(this, GoogleActivity::class.java)
|
val intent = Intent(this, GoogleActivity::class.java)
|
||||||
startActivity(
|
startActivity(
|
||||||
intent,
|
intent,
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ class SplashActivity : BaseActivity() {
|
|||||||
B.btnGoogle.addOnClickListener {
|
B.btnGoogle.addOnClickListener {
|
||||||
if (VM.liveData.value != AuthState.Fetching) {
|
if (VM.liveData.value != AuthState.Fetching) {
|
||||||
B.btnGoogle.updateProgress(true)
|
B.btnGoogle.updateProgress(true)
|
||||||
Preferences.putBoolean(this, Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT, false)
|
|
||||||
val intent = Intent(this, GoogleActivity::class.java)
|
val intent = Intent(this, GoogleActivity::class.java)
|
||||||
startForResult.launch(intent, getEmptyActivityAnimation())
|
startForResult.launch(intent, getEmptyActivityAnimation())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,12 +90,6 @@ class AuthViewModel(application: Application) : BaseAndroidViewModel(application
|
|||||||
Preferences.PREFERENCE_INSECURE_ANONYMOUS
|
Preferences.PREFERENCE_INSECURE_ANONYMOUS
|
||||||
)
|
)
|
||||||
|
|
||||||
Preferences.putBoolean(
|
|
||||||
getApplication(),
|
|
||||||
Preferences.PREFERENCE_ADVANCED_SEARCH_IN_CTT,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
|
|
||||||
if (insecure) {
|
if (insecure) {
|
||||||
buildInSecureAnonymousAuthData()
|
buildInSecureAnonymousAuthData()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user