diff options
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandUnblock.java')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandUnblock.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandUnblock.java b/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandUnblock.java index 992ed285..a8387de0 100644 --- a/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandUnblock.java +++ b/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandUnblock.java @@ -50,14 +50,14 @@ public class UserCommandUnblock extends UserCommand implements IConfirmable { @Override public boolean isEnabled() { - return getUser() != Application.getCurrentAccount().getUser(); + return getUser() != Application.getInstance().getCurrentAccount().getUser(); } // -------------------------- OTHER METHODS -------------------------- @Override public boolean execute() { - new UnblockTask(Application.getCurrentAccount(), getUser().getId()) + new UnblockTask(Application.getInstance().getCurrentAccount(), getUser().getId()) .onDone(user -> Notificator.getInstance().publish(R.string.notice_unblock_succeeded)) .onFail(x -> Notificator.getInstance().publish(R.string.notice_unblock_failed, NotificationType.ALERT)) .execute(); |