Skip to content

Commit

Permalink
Remove XML onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbWatershed committed Sep 8, 2021
1 parent cd3348b commit 6bce418
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ private void initUI() {
llm = (LinearLayoutManager) recyclerView.getLayoutManager();
new FastScrollerBuilder(recyclerView).build();

View alertCloseButton = findViewById(R.id.web_alert_close_btn);
alertCloseButton.setOnClickListener(this::onAlertCloseClick);

initPagingMethod();
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_hina.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/web_alert_txt"
tools:listitem="@layout/item_library" />
tools:listitem="@layout/item_library_content" />

<TextView
android:id="@+id/hina_loading_txt"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/include_source_alert_bar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="8dp"
android:onClick="onAlertCloseClick"
android:src="@drawable/ic_cancel"
app:layout_constraintEnd_toEndOf="@id/web_alert_txt"
app:layout_constraintTop_toTopOf="@id/web_alert_txt"
Expand Down

0 comments on commit 6bce418

Please sign in to comment.