JAVA 28
Java By Guest on 3rd May 2017 04:44:40 AM
  1.     @Override
  2.     public void showError() {
  3.         Toast.makeText(getActivity(), "Error", Toast.LENGTH_SHORT).show();
  4.         btnRetry.setVisibility(View.VISIBLE);
  5.         btnRetry.setOnClickListener(new View.OnClickListener() {
  6.             @Override
  7.             public void onClick(View view) {
  8.                 mainPresenter.retryRequest();
  9.                 btnRetry.setVisibility(View.GONE);
  10.             }
  11.         });
  12.     }

Paste is for source code and general debugging text.

Login or Register to delete or keep track of your pastes.