aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-07 22:41:12 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-07 22:45:25 +0200
commit271555fe6cef8d33efb6dfe304b0aff77c6354c5 (patch)
treee3280520bd3f287b8d5111cfb294dc83c78cb5ef /src/main/java/de/pixart/messenger
parentec95306805a48bfe9c54c9340eb043de98b9eba4 (diff)
fix crash while changing password
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ChangePasswordActivity.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ChangePasswordActivity.java b/src/main/java/de/pixart/messenger/ui/ChangePasswordActivity.java
index 9525513aa..cbf9aaec5 100644
--- a/src/main/java/de/pixart/messenger/ui/ChangePasswordActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ChangePasswordActivity.java
@@ -61,18 +61,15 @@ public class ChangePasswordActivity extends XmppActivity implements XmppConnecti
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_change_password);
Button mCancelButton = findViewById(R.id.left_button);
- mCancelButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- finish();
- }
- });
+ mCancelButton.setOnClickListener(view -> finish());
this.mChangePasswordButton = findViewById(R.id.right_button);
this.mChangePasswordButton.setOnClickListener(this.mOnChangePasswordButtonClicked);
this.mCurrentPassword = findViewById(R.id.current_password);
this.mCurrentPassword.setCustomSelectionActionModeCallback(new DisabledActionModeCallback());
this.mNewPassword = findViewById(R.id.new_password);
this.mNewPassword.setCustomSelectionActionModeCallback(new DisabledActionModeCallback());
+ this.mCurrentPasswordLayout = findViewById(R.id.current_password_layout);
+ this.mNewPasswordLayout = findViewById(R.id.new_password_layout);
}
@Override