diff options
-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 |