From 5417786edc68f5237229509d0b670928fd65e06f Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Tue, 17 Jul 2018 19:57:55 +0300 Subject: [PATCH] refresh page after edit --- .../gr/thmmy/mthmmy/activities/topic/TopicActivity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java index b8e029ab..1cf3939b 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java +++ b/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{ + public class EditTask extends AsyncTask { 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); + } } } } \ No newline at end of file