From 271555fe6cef8d33efb6dfe304b0aff77c6354c5 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 7 Apr 2018 22:41:12 +0200 Subject: fix crash while changing password --- src/main/java/de/pixart/messenger/ui/ChangePasswordActivity.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main/java/de/pixart/messenger') 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 -- cgit v1.2.3