mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Check if activity is still alive before returning results to it
This commit is contained in:
@@ -106,7 +106,7 @@ public class ReblogFragment extends BaseFragment {
|
||||
// TODO: Load blog post when fragment is created. #631
|
||||
feedController.loadBlogPost(blogId, postId,
|
||||
new UiResultExceptionHandler<BlogPostItem, DbException>(
|
||||
getActivity()) {
|
||||
listener) {
|
||||
@Override
|
||||
public void onResultUi(BlogPostItem result) {
|
||||
item = result;
|
||||
@@ -148,7 +148,7 @@ public class ReblogFragment extends BaseFragment {
|
||||
private void send() {
|
||||
String comment = getComment();
|
||||
feedController.repeatPost(item, comment,
|
||||
new UiResultExceptionHandler<Void, DbException>(getActivity()) {
|
||||
new UiResultExceptionHandler<Void, DbException>(listener) {
|
||||
@Override
|
||||
public void onResultUi(Void result) {
|
||||
// do nothing, this fragment is gone already
|
||||
|
||||
Reference in New Issue
Block a user