Browse Source

breaks dammit

pull/61/merge
Thodoris1999 6 years ago
parent
commit
c06ade5569
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

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

@ -542,6 +542,7 @@ public class TopicActivity extends BaseActivity implements TopicAdapter.OnPostFo
} else { } else {
viewModel.reloadPage(); viewModel.reloadPage();
} }
break;
case NEW_REPLY_WHILE_POSTING: case NEW_REPLY_WHILE_POSTING:
Timber.i("New reply while writing a reply"); Timber.i("New reply while writing a reply");
TopicAdapter.QuickReplyViewHolder replyHolder = (TopicAdapter.QuickReplyViewHolder) TopicAdapter.QuickReplyViewHolder replyHolder = (TopicAdapter.QuickReplyViewHolder)
@ -567,6 +568,7 @@ public class TopicActivity extends BaseActivity implements TopicAdapter.OnPostFo
.show(); .show();
}; };
viewModel.reloadPageThen(addReply); viewModel.reloadPageThen(addReply);
break;
default: default:
Timber.w("Post reply unsuccessful"); Timber.w("Post reply unsuccessful");
Toast.makeText(getBaseContext(), "Post failed!", Toast.LENGTH_SHORT).show(); Toast.makeText(getBaseContext(), "Post failed!", Toast.LENGTH_SHORT).show();

Loading…
Cancel
Save