mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Fix app crashes when fetching gfycat videos failed for autoplay.
This commit is contained in:
parent
f8694309d3
commit
f8a5dc9d61
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user