From: Damyan Ivanov Date: Sun, 31 Jan 2021 16:31:43 +0000 (+0000) Subject: typo in view id X-Git-Tag: v0.17.0~186 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;ds=inline;h=0608bab1d015a5fafeb39d50dece1146b268149d;p=mobile-ledger.git typo in view id --- 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" />