diff options
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandBlock.java')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandBlock.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandBlock.java b/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandBlock.java index 3c826005..e2e0b381 100644 --- a/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandBlock.java +++ b/app/src/main/java/net/lacolaco/smileessence/command/user/UserCommandBlock.java @@ -50,14 +50,14 @@ public class UserCommandBlock 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 BlockTask(Application.getCurrentAccount(), getUser().getId()) + new BlockTask(Application.getInstance().getCurrentAccount(), getUser().getId()) .onDone(user -> Notificator.getInstance().publish(R.string.notice_block_succeeded)) .onFail(ex -> Notificator.getInstance().publish(R.string.notice_block_failed, NotificationType.ALERT)) .execute(); |