Fix app crashes when fetching gfycat videos failed for autoplay.

This commit is contained in:
Alex Ning 2021-12-20 18:54:29 +08:00
parent f8694309d3
commit f8a5dc9d61
2 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class FetchGfycatOrRedgifsVideoLinks {
}
} catch (IOException e) {
e.printStackTrace();
fetchGfycatOrRedgifsVideoLinksListener.failed(-1);
handler.post(() -> fetchGfycatOrRedgifsVideoLinksListener.failed(-1));
}
});
}

View File

@ -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);
}
});
}