From 65a4617f7f5cfca4be30561b08df0cd096f25da0 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 10 Dec 2019 18:27:36 -0800 Subject: [PATCH] changed to finish --- .../java/org/oppia/app/profile/AddProfileActivityPresenter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/oppia/app/profile/AddProfileActivityPresenter.kt b/app/src/main/java/org/oppia/app/profile/AddProfileActivityPresenter.kt index 10ef574e8de..5ba881e5cd0 100644 --- a/app/src/main/java/org/oppia/app/profile/AddProfileActivityPresenter.kt +++ b/app/src/main/java/org/oppia/app/profile/AddProfileActivityPresenter.kt @@ -129,9 +129,7 @@ class AddProfileActivityPresenter @Inject constructor( private fun handleAddProfileResult(result: AsyncResult, binding: AddProfileActivityBinding) { if (result.isSuccess()) { - val intent = Intent(activity, ProfileActivity::class.java) - intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) - activity.startActivity(intent) + activity.finish() } else if (result.isFailure()) { when (result.getErrorOrNull()) { is ProfileManagementController.ProfileNameNotUniqueException -> profileViewModel.nameErrorMsg.set(