diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-09-23 01:02:26 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-09-23 01:02:26 +0900 |
commit | b850a97e7b19df6c11c6d45984c79c3070cb606c (patch) | |
tree | e10d639d0850619c97218f58b37c4c5ab7f07044 /app/src/main/java/net/lacolaco/smileessence/command/status/StatusCommandFavAndRT.java | |
parent | be8fa9c1b0a732659c4501178f651708c6f6dd4a (diff) | |
download | SmileEssence-b850a97e7b19df6c11c6d45984c79c3070cb606c.tar.gz |
Account#getUser() が null を返さないように。とりあえずデータベース上にある screenName を利用する
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 | 2 |
1 files changed, 1 insertions, 1 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 fe1a100f..9d5f5471 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 @@ -59,7 +59,7 @@ public class StatusCommandFavAndRT extends StatusCommand implements IConfirmable @Override public boolean isEnabled() { User user = getOriginalStatus().getUser(); - return !user.isProtected() && user.getId() != account.userID; + return !user.isProtected() && user.getId() != account.getUserId(); } // -------------------------- OTHER METHODS -------------------------- |