|
|
|
@ -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); |
|
|
|
|