Pin thread on successful post.

captchafix
Florens Douwes 11 years ago
parent 1221acb3b8
commit 097ebad3d6
  1. 9
      Clover/app/src/main/java/org/floens/chan/ui/fragment/ReplyFragment.java

@ -56,6 +56,7 @@ import org.floens.chan.core.ChanPreferences;
import org.floens.chan.core.manager.ReplyManager;
import org.floens.chan.core.manager.ReplyManager.ReplyResponse;
import org.floens.chan.core.model.Loadable;
import org.floens.chan.core.model.Pin;
import org.floens.chan.core.model.Reply;
import org.floens.chan.ui.ViewFlipperAnimations;
import org.floens.chan.ui.view.LoadView;
@ -507,7 +508,13 @@ public class ReplyFragment extends DialogFragment {
} else if (response.isSuccessful) {
shouldSaveDraft = false;
Toast.makeText(context, R.string.reply_success, Toast.LENGTH_SHORT).show();
// threadFragment.reload(); // won't work: it takes 4chan a variable time to process the reply
// threadFragment.reload(); // won't work: it takes 4chan a variable time to process the reply
// Pin thread on successful post
Pin pin = new Pin();
pin.loadable = loadable;
ChanApplication.getPinnedManager().add(pin);
closeReply();
} else {
cancelButton.setEnabled(true);

Loading…
Cancel
Save