Using default values
This commit is contained in:
parent
e60bda7806
commit
38b40efac3
|
@ -205,7 +205,6 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
|
|||
|
||||
MainActivity.restartApp(this,
|
||||
MainActivityArgs(
|
||||
clearCache = false,
|
||||
clearCredentials = !globalError.softLogout,
|
||||
isUserLoggedOut = true,
|
||||
isSoftLogout = globalError.softLogout
|
||||
|
|
|
@ -177,12 +177,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
|
|||
|
||||
it.onPreferenceClickListener = Preference.OnPreferenceClickListener {
|
||||
displayLoadingView()
|
||||
MainActivity.restartApp(activity!!,
|
||||
MainActivityArgs(
|
||||
clearCache = true,
|
||||
clearCredentials = false
|
||||
)
|
||||
)
|
||||
MainActivity.restartApp(activity!!, MainActivityArgs(clearCache = true))
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,9 +87,7 @@ class SoftLogoutActivity : LoginActivity() {
|
|||
)
|
||||
}
|
||||
is SoftLogoutViewEvents.ClearData -> {
|
||||
MainActivity.restartApp(this, MainActivityArgs(
|
||||
clearCredentials = true
|
||||
))
|
||||
MainActivity.restartApp(this, MainActivityArgs(clearCredentials = true))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,11 +54,6 @@ class SignOutUiWorker(private val activity: FragmentActivity) {
|
|||
}
|
||||
|
||||
private fun doSignOut() {
|
||||
MainActivity.restartApp(activity,
|
||||
MainActivityArgs(
|
||||
clearCache = true,
|
||||
clearCredentials = true
|
||||
)
|
||||
)
|
||||
MainActivity.restartApp(activity, MainActivityArgs(clearCredentials = true))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue