From 68462eac2bb8ae8a6ee0a357778e6224734f0b3f Mon Sep 17 00:00:00 2001 From: ydrall Date: Fri, 11 Aug 2017 15:02:15 +0530 Subject: [PATCH] make SignupActivity to terminate on task completion --- .../main/java/fr/free/nrw/commons/auth/SignupActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java b/app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java index 10c095a0f..db810fa84 100644 --- a/app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java +++ b/app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java @@ -1,6 +1,5 @@ package fr.free.nrw.commons.auth; -import android.content.Intent; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; @@ -44,9 +43,8 @@ public class SignupActivity extends BaseActivity { Toast.LENGTH_LONG ); toast.show(); - - Intent intent = new Intent(CommonsApplication.getInstance(), LoginActivity.class); - startActivity(intent); + // terminate on task completion. + finish(); return true; } else { //If user clicks any other links in the webview