Browse Source

refresh page after edit

pull/30/head
Thodoris1999 7 years ago
parent
commit
5417786edc
  1. 8
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

8
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

@ -1090,7 +1090,7 @@ public class TopicActivity extends BaseActivity {
}
}
public class EditTask extends AsyncTask<EditTaskDTO, Void, Boolean>{
public class EditTask extends AsyncTask<EditTaskDTO, Void, Boolean> {
EditTaskDTO dto;
@Override
@ -1156,6 +1156,12 @@ public class TopicActivity extends BaseActivity {
Toast.makeText(TopicActivity.this, "Post failed!", Toast.LENGTH_SHORT).show();
paginationEnabled(true);
replyFAB.setEnabled(true);
if (result) {
topicTask = new TopicTask();
reloadingPage = true;
topicTask.execute(loadedPageUrl);
}
}
}
}
Loading…
Cancel
Save