mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Fix issue 3137 (#3637)
* Fix issue 3137 * Remove import Timber * Remove unnecessary space
This commit is contained in:
parent
62f176443b
commit
46847f0d77
3 changed files with 17 additions and 15 deletions
|
|
@ -147,6 +147,7 @@ public class SearchDepictionsFragment extends CommonsDaggerSupportFragment imple
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void initErrorView() {
|
public void initErrorView() {
|
||||||
|
isLoading = false;
|
||||||
progressBar.setVisibility(GONE);
|
progressBar.setVisibility(GONE);
|
||||||
bottomProgressBar.setVisibility(GONE);
|
bottomProgressBar.setVisibility(GONE);
|
||||||
depictionNotFound.setVisibility(VISIBLE);
|
depictionNotFound.setVisibility(VISIBLE);
|
||||||
|
|
@ -195,10 +196,11 @@ public class SearchDepictionsFragment extends CommonsDaggerSupportFragment imple
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void loadingDepictions() {
|
public void loadingDepictions(boolean isLoading) {
|
||||||
depictionNotFound.setVisibility(GONE);
|
depictionNotFound.setVisibility(GONE);
|
||||||
bottomProgressBar.setVisibility(View.VISIBLE);
|
bottomProgressBar.setVisibility(View.VISIBLE);
|
||||||
progressBar.setVisibility(GONE);
|
progressBar.setVisibility(GONE);
|
||||||
|
this.isLoading = isLoading;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public interface SearchDepictionsFragmentContract {
|
||||||
/**
|
/**
|
||||||
* load depictions
|
* load depictions
|
||||||
*/
|
*/
|
||||||
void loadingDepictions();
|
void loadingDepictions(boolean isLoading);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clear adapter
|
* clear adapter
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ public class SearchDepictionsFragmentPresenter extends CommonsDaggerSupportFragm
|
||||||
@Override
|
@Override
|
||||||
public void updateDepictionList(String query, int pageSize, boolean reInitialise) {
|
public void updateDepictionList(String query, int pageSize, boolean reInitialise) {
|
||||||
this.query = query;
|
this.query = query;
|
||||||
view.loadingDepictions();
|
view.loadingDepictions(true);
|
||||||
if (reInitialise) {
|
if (reInitialise) {
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue