diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-04-17 10:18:41 +0200 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-04-20 07:56:44 +0200 |
commit | 6ea9242fff747e990ca7945fc5016d0a3495d1f7 (patch) | |
tree | 0bfd6e37078668221ad764f669aaa3c83a3521e4 /app/src/main/java | |
parent | a15133e45e6b94f23ea15b18ee1fe1aaa8034eda (diff) | |
download | AntennaPod-6ea9242fff747e990ca7945fc5016d0a3495d1f7.zip |
Reload description on swipe
Always calls onFragmentLoaded() because updateAppearance() does not reload the description.
Resolves #1876
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java index 4093d8b7a..9740c9af9 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java @@ -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)); }); |