make SignupActivity to terminate on task completion

This commit is contained in:
ydrall 2017-08-11 15:02:15 +05:30
parent 401de30630
commit 68462eac2b

View file

@ -1,6 +1,5 @@
package fr.free.nrw.commons.auth; package fr.free.nrw.commons.auth;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.webkit.WebSettings; import android.webkit.WebSettings;
import android.webkit.WebView; import android.webkit.WebView;
@ -44,9 +43,8 @@ public class SignupActivity extends BaseActivity {
Toast.LENGTH_LONG Toast.LENGTH_LONG
); );
toast.show(); toast.show();
// terminate on task completion.
Intent intent = new Intent(CommonsApplication.getInstance(), LoginActivity.class); finish();
startActivity(intent);
return true; return true;
} else { } else {
//If user clicks any other links in the webview //If user clicks any other links in the webview