diff options
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java b/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java index 122a4bac..525c41f9 100644 --- a/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java +++ b/app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java @@ -54,18 +54,18 @@ public class StatusCommandFavAndRT extends StatusCommand implements IConfirmable @Override public boolean isEnabled() { User user = getOriginalStatus().getUser(); - return !user.isProtected() && user != Application.getCurrentAccount().getUser(); + return !user.isProtected() && user != Application.getInstance().getCurrentAccount().getUser(); } // -------------------------- OTHER METHODS -------------------------- @Override public boolean execute() { - new FavoriteTask(Application.getCurrentAccount(), getOriginalStatus().getId()) + 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(); - new RetweetTask(Application.getCurrentAccount(), getOriginalStatus().getId()) + new RetweetTask(Application.getInstance().getCurrentAccount(), getOriginalStatus().getId()) .onDone(x -> Notificator.getInstance().publish(R.string.notice_retweet_succeeded)) .onFail(x -> Notificator.getInstance().publish(R.string.notice_retweet_failed, NotificationType.ALERT)) .execute(); |