Using default values

This commit is contained in:
Benoit Marty 2019-12-13 15:24:44 +01:00
parent e60bda7806
commit 38b40efac3
4 changed files with 3 additions and 16 deletions

View File

@ -205,7 +205,6 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
MainActivity.restartApp(this,
MainActivityArgs(
clearCache = false,
clearCredentials = !globalError.softLogout,
isUserLoggedOut = true,
isSoftLogout = globalError.softLogout

View File

@ -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
}
}

View File

@ -87,9 +87,7 @@ class SoftLogoutActivity : LoginActivity() {
)
}
is SoftLogoutViewEvents.ClearData -> {
MainActivity.restartApp(this, MainActivityArgs(
clearCredentials = true
))
MainActivity.restartApp(this, MainActivityArgs(clearCredentials = true))
}
}
}

View File

@ -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))
}
}