diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-07 22:41:12 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-07 22:45:25 +0200 |
commit | 271555fe6cef8d33efb6dfe304b0aff77c6354c5 (patch) | |
tree | e3280520bd3f287b8d5111cfb294dc83c78cb5ef /src/main/java/de/pixart/messenger | |
parent | ec95306805a48bfe9c54c9340eb043de98b9eba4 (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.java | 9 |
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 |