diff --git a/mastodon/build.gradle b/mastodon/build.gradle index d7adcd9b..c329ded7 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -72,7 +72,7 @@ dependencies { implementation 'me.grishka.litex:dynamicanimation:1.1.0-alpha03' implementation 'me.grishka.litex:viewpager:1.0.0' implementation 'me.grishka.litex:viewpager2:1.0.0' - implementation 'me.grishka.appkit:appkit:1.2.6' + implementation 'me.grishka.appkit:appkit:1.2.7' implementation 'com.google.code.gson:gson:2.8.9' implementation 'org.jsoup:jsoup:1.14.3' implementation 'com.squareup:otto:1.3.8' diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java index d2b450fc..7f7cc3e2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/SearchFragment.java @@ -172,12 +172,11 @@ public class SearchFragment extends BaseStatusListFragment{ super.updateList(); return; } - imgLoader.deactivate(); UiUtils.updateList(prevDisplayItems, displayItems, list, adapter, (i1, i2)->i1.parentID.equals(i2.parentID) && i1.index==i2.index && i1.getType()==i2.getType()); boolean recent=isInRecentMode(); if(recent!=headerAdapter.isVisible()) headerAdapter.setVisible(recent); - imgLoader.activate(); + imgLoader.forceUpdateImages(); prevDisplayItems=null; } diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ImageStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ImageStatusDisplayItem.java index 45425854..782f94e1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ImageStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ImageStatusDisplayItem.java @@ -85,6 +85,7 @@ public abstract class ImageStatusDisplayItem extends StatusDisplayItem{ @Override public void clearImage(int index){ crossfadeDrawable.setCrossfadeAlpha(1f); + crossfadeDrawable.setImageDrawable(null); didClear=true; }