Skip to content
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.

Commit

Permalink
Fix crash when casting TextView to Button incorrectly
Browse files Browse the repository at this point in the history
Signed-off-by: Fung Gwo <[email protected]>
  • Loading branch information
fython committed Mar 3, 2018
1 parent ca8dd78 commit 8f5e53e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public int getItemViewType(int position) {

class BreadcrumbItemHolder extends ItemHolder<IBreadcrumbItem> {

Button button;
TextView button;

BreadcrumbItemHolder(View itemView) {
super(itemView);
button = (Button) itemView;
button = (TextView) itemView;
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Expand Down

0 comments on commit 8f5e53e

Please sign in to comment.