From 0608bab1d015a5fafeb39d50dece1146b268149d Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 31 Jan 2021 16:31:43 +0000 Subject: [PATCH] typo in view id --- .../net/ktnx/mobileledger/ui/patterns/PatternViewHolder.java | 2 +- app/src/main/res/layout/pattern_layout.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternViewHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternViewHolder.java index b6cac9b2..8dc8e32b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternViewHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternViewHolder.java @@ -31,7 +31,7 @@ class PatternViewHolder extends RecyclerView.ViewHolder { } public void bindToItem(PatternHeader item) { b.patternName.setText(item.getName()); - b.editButon.setOnClickListener(v -> { + b.editButton.setOnClickListener(v -> { ((PatternsActivity) v.getContext()).onEditPattern(item.getId()); }); } diff --git a/app/src/main/res/layout/pattern_layout.xml b/app/src/main/res/layout/pattern_layout.xml index 6c1928fa..fdeea8c1 100644 --- a/app/src/main/res/layout/pattern_layout.xml +++ b/app/src/main/res/layout/pattern_layout.xml @@ -27,12 +27,12 @@ android:layout_marginStart="@dimen/text_margin" android:layout_marginEnd="@dimen/text_margin" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toStartOf="@id/edit_buton" + app:layout_constraintEnd_toStartOf="@id/edit_button" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />