mirror of
https://github.com/readrops/Readrops.git
synced 2025-02-09 08:28:39 +01:00
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…
x
Reference in New Issue
Block a user