aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/FetchGfycatOrRedgifsVideoLinks.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/FetchStreamableVideo.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchGfycatOrRedgifsVideoLinks.java b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchGfycatOrRedgifsVideoLinks.java
index e97b0ff4..19e720b5 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchGfycatOrRedgifsVideoLinks.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchGfycatOrRedgifsVideoLinks.java
@@ -60,7 +60,7 @@ public class FetchGfycatOrRedgifsVideoLinks {
}
} catch (IOException e) {
e.printStackTrace();
- fetchGfycatOrRedgifsVideoLinksListener.failed(-1);
+ handler.post(() -> fetchGfycatOrRedgifsVideoLinksListener.failed(-1));
}
});
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchStreamableVideo.java b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchStreamableVideo.java
index c310539a..91fc164c 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchStreamableVideo.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchStreamableVideo.java
@@ -39,6 +39,7 @@ public class FetchStreamableVideo {
}
} catch (IOException | JSONException e) {
e.printStackTrace();
+ handler.post(fetchStreamableVideoListener::failed);
}
});
}
@@ -64,6 +65,7 @@ public class FetchStreamableVideo {
}
} catch (IOException | JSONException e) {
e.printStackTrace();
+ handler.post(fetchStreamableVideoListener::failed);
}
});
}