|
|
@ -32,6 +32,7 @@ import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
|
|
|
|
import androidx.recyclerview.widget.SimpleItemAnimator;
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
|
|
|
|
|
|
@ -253,6 +254,10 @@ public class FragmentMastodonNotification extends Fragment implements Notificati
|
|
|
|
if (binding == null || !isAdded() || getActivity() == null) {
|
|
|
|
if (binding == null || !isAdded() || getActivity() == null) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RecyclerView.ItemAnimator animator = binding.recyclerView.getItemAnimator();
|
|
|
|
|
|
|
|
if (animator instanceof SimpleItemAnimator) {
|
|
|
|
|
|
|
|
((SimpleItemAnimator) animator).setSupportsChangeAnimations(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
binding.loader.setVisibility(View.GONE);
|
|
|
|
binding.loader.setVisibility(View.GONE);
|
|
|
|
binding.noAction.setVisibility(View.GONE);
|
|
|
|
binding.noAction.setVisibility(View.GONE);
|
|
|
|
binding.swipeContainer.setRefreshing(false);
|
|
|
|
binding.swipeContainer.setRefreshing(false);
|
|
|
|