diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/account/DeactivateAccountParams.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/account/DeactivateAccountParams.kt index 7a099ca03d..9960f61dbc 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/account/DeactivateAccountParams.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/account/DeactivateAccountParams.kt @@ -14,10 +14,10 @@ * limitations under the License. */ -package im.vector.matrix.android.internal.session.account; +package im.vector.matrix.android.internal.session.account -import com.squareup.moshi.Json; -import com.squareup.moshi.JsonClass; +import com.squareup.moshi.Json +import com.squareup.moshi.JsonClass import im.vector.matrix.android.internal.crypto.model.rest.UserPasswordAuth @JsonClass(generateAdapter = true) diff --git a/vector/src/main/java/im/vector/riotx/features/settings/account/deactivation/DeactivateAccountFragment.kt b/vector/src/main/java/im/vector/riotx/features/settings/account/deactivation/DeactivateAccountFragment.kt index 74a8a52606..3532bcb96e 100644 --- a/vector/src/main/java/im/vector/riotx/features/settings/account/deactivation/DeactivateAccountFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/settings/account/deactivation/DeactivateAccountFragment.kt @@ -108,7 +108,6 @@ class DeactivateAccountFragment @Inject constructor( } DeactivateAccountViewEvents.Done -> MainActivity.restartApp(activity!!, MainActivityArgs(clearCredentials = true, isAccountDeactivated = true)) - }.exhaustive } }