mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-27 10:16:00 +00:00
Fix app crashes when fetching gfycat videos failed for autoplay.
This commit is contained in:
@ -60,7 +60,7 @@ public class FetchGfycatOrRedgifsVideoLinks {
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
fetchGfycatOrRedgifsVideoLinksListener.failed(-1);
|
||||
handler.post(() -> fetchGfycatOrRedgifsVideoLinksListener.failed(-1));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user