diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/MainPresenter.java b/app/src/main/java/ru/volgorobot/vrcatalog/MainPresenter.java index c707bef..3fa59d7 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/MainPresenter.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/MainPresenter.java @@ -21,6 +21,7 @@ public class MainPresenter implements MainContract.Presenter { @Override public void getFirstLevel() { + mView.swipeLayoutSetRefreshing(true); try { coreModel.reinitializeApi(); } catch (IllegalStateException e) { diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java b/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java index b0a21d1..dffbd16 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java @@ -104,7 +104,6 @@ public class MainActivity extends AppCompatActivity @Override public void onRefresh() { - mSwipeRefreshLayout.setRefreshing(true); mPresenter.getFirstLevel(); }