diff options
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandMakeAnonymous.java')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandMakeAnonymous.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandMakeAnonymous.java b/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandMakeAnonymous.java index 35f73691..e0d63ec7 100644 --- a/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandMakeAnonymous.java +++ b/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandMakeAnonymous.java @@ -77,9 +77,9 @@ public class StatusCommandMakeAnonymous extends StatusCommand implements IConfir @Override public boolean execute() { - StatusUpdate update = new TweetBuilder().setText(build(getActivity(), getOriginalStatus(), Application.getCurrentAccount())).build(); - new TweetTask(Application.getCurrentAccount(), update).execute(); - new FavoriteTask(Application.getCurrentAccount(), getOriginalStatus().getId()) + StatusUpdate update = new TweetBuilder().setText(build(getActivity(), getOriginalStatus(), Application.getInstance().getCurrentAccount())).build(); + new TweetTask(Application.getInstance().getCurrentAccount(), update).execute(); + new FavoriteTask(Application.getInstance().getCurrentAccount(), getOriginalStatus().getId()) .onDone(x -> Notificator.getInstance().publish(R.string.notice_favorite_succeeded)) .onFail(x -> Notificator.getInstance().publish(R.string.notice_favorite_failed, NotificationType.ALERT)) .execute(); |