feat(ErrorStatusDisplayItem): disable clicking on error item
Disable clicking on the ErrorStatusDisplayItem, since there is no valid content that can be displayed.
This commit is contained in:
parent
01225b05f2
commit
c2e6280a18
1 changed files with 10 additions and 0 deletions
|
@ -39,6 +39,16 @@ public class ErrorStatusDisplayItem extends StatusDisplayItem{
|
|||
findViewById(R.id.button_copy_error_details).setOnClickListener(this::copyErrorDetails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(){
|
||||
// explicitly do nothing when clicked
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled(){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBind(ErrorStatusDisplayItem item) {
|
||||
openInBrowserButton.setEnabled(item.status!=null && item.status.url!=null);
|
||||
|
|
Loading…
Add table
Reference in a new issue