mirror of https://github.com/readrops/Readrops.git
stopping refreshlayout animation when an exception is raised
This commit is contained in:
parent
ff8b9156db
commit
1a9bba1e44
|
@ -179,11 +179,11 @@ public class MainActivity extends AppCompatActivity implements SimpleCallback, S
|
|||
public void onSuccess() {
|
||||
refreshLayout.setRefreshing(false);
|
||||
adapter.submitList(newItems);
|
||||
//newItems.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Exception e) {
|
||||
refreshLayout.setRefreshing(false);
|
||||
Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue