Merge pull request #1877 from mfietz/issue/1876-load-description
Episode: Reload description on swipe
This commit is contained in:
commit
606a22b98f
@ -352,8 +352,7 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
|
|||||||
|
|
||||||
private void onFragmentLoaded() {
|
private void onFragmentLoaded() {
|
||||||
if (webviewData != null) {
|
if (webviewData != null) {
|
||||||
webvDescription.loadDataWithBaseURL(null, webviewData, "text/html",
|
webvDescription.loadDataWithBaseURL(null, webviewData, "text/html", "utf-8", "about:blank");
|
||||||
"utf-8", "about:blank");
|
|
||||||
}
|
}
|
||||||
updateAppearance();
|
updateAppearance();
|
||||||
}
|
}
|
||||||
@ -573,12 +572,8 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
|
|||||||
.subscribe(result -> {
|
.subscribe(result -> {
|
||||||
progbarLoading.setVisibility(View.GONE);
|
progbarLoading.setVisibility(View.GONE);
|
||||||
item = result;
|
item = result;
|
||||||
if (!itemsLoaded) {
|
itemsLoaded = true;
|
||||||
itemsLoaded = true;
|
onFragmentLoaded();
|
||||||
onFragmentLoaded();
|
|
||||||
} else {
|
|
||||||
updateAppearance();
|
|
||||||
}
|
|
||||||
}, error -> {
|
}, error -> {
|
||||||
Log.e(TAG, Log.getStackTraceString(error));
|
Log.e(TAG, Log.getStackTraceString(error));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user