Reload description on swipe

Always calls onFragmentLoaded() because updateAppearance() does not reload the description.

Resolves 
This commit is contained in:
Martin Fietz 2016-04-17 10:18:41 +02:00
parent a15133e45e
commit 6ea9242fff

@ -352,8 +352,7 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
private void onFragmentLoaded() {
if (webviewData != null) {
webvDescription.loadDataWithBaseURL(null, webviewData, "text/html",
"utf-8", "about:blank");
webvDescription.loadDataWithBaseURL(null, webviewData, "text/html", "utf-8", "about:blank");
}
updateAppearance();
}
@ -573,12 +572,8 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
.subscribe(result -> {
progbarLoading.setVisibility(View.GONE);
item = result;
if (!itemsLoaded) {
itemsLoaded = true;
onFragmentLoaded();
} else {
updateAppearance();
}
itemsLoaded = true;
onFragmentLoaded();
}, error -> {
Log.e(TAG, Log.getStackTraceString(error));
});