From 8d72087ac63881b4690724875b3afc8dd93245a9 Mon Sep 17 00:00:00 2001 From: Ruben Gees Date: Sat, 30 Jan 2016 15:49:48 +0100 Subject: [PATCH] Fix for reappearing error-messages - Also call removeStickyEvent on ErrorEvents --- app/src/main/java/com/proxerme/app/fragment/PagingFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/proxerme/app/fragment/PagingFragment.java b/app/src/main/java/com/proxerme/app/fragment/PagingFragment.java index 30df9d7c..0795ab1d 100644 --- a/app/src/main/java/com/proxerme/app/fragment/PagingFragment.java +++ b/app/src/main/java/com/proxerme/app/fragment/PagingFragment.java @@ -207,6 +207,8 @@ public void onEventMainThread(E result) { } public void onEventMainThread(EE errorResult) { + EventBus.getDefault().removeStickyEvent(errorResult); + //noinspection ThrowableResultOfMethodCallIgnored ProxerException exception = errorResult.getItem();