From 05d1387f4e83e8fb5352ea8108e2fb8708427046 Mon Sep 17 00:00:00 2001 From: Nishant Patel Date: Wed, 20 Dec 2017 20:04:43 -0500 Subject: [PATCH] Hide user email and password when user clicks on create new account --- .../example/android/udninventory/login/MainLoginActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/example/android/udninventory/login/MainLoginActivity.java b/app/src/main/java/com/example/android/udninventory/login/MainLoginActivity.java index 8774b8b..2e80366 100644 --- a/app/src/main/java/com/example/android/udninventory/login/MainLoginActivity.java +++ b/app/src/main/java/com/example/android/udninventory/login/MainLoginActivity.java @@ -83,6 +83,8 @@ public void onClick(View view) { createNewAccount.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { + mUserEmail.setText(null); + mUserPassword.setText(null); Intent createNewAccountIntent = new Intent(MainLoginActivity.this, NewAccountActivity.class); startActivity(createNewAccountIntent); }