Merge pull request #1877 from mfietz/issue/1876-load-description

Episode: Reload description on swipe
This commit is contained in:
Tom Hennen 2016-04-20 07:12:12 -04:00
commit 606a22b98f

View File

@ -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));
});