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/view/dialog/UserDetailDialogFragment.java | |
parent | be8fa9c1b0a732659c4501178f651708c6f6dd4a (diff) | |
download | SmileEssence-b850a97e7b19df6c11c6d45984c79c3070cb606c.tar.gz |
Account#getUser() が null を返さないように。とりあえずデータベース上にある screenName を利用する
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/view/dialog/UserDetailDialogFragment.java')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/view/dialog/UserDetailDialogFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/view/dialog/UserDetailDialogFragment.java b/app/src/main/java/net/lacolaco/smileessence/view/dialog/UserDetailDialogFragment.java index 1538ed7b..83e06619 100644 --- a/app/src/main/java/net/lacolaco/smileessence/view/dialog/UserDetailDialogFragment.java +++ b/app/src/main/java/net/lacolaco/smileessence/view/dialog/UserDetailDialogFragment.java @@ -377,7 +377,7 @@ public class UserDetailDialogFragment extends StackableDialogFragment implements private void updateRelationship(Activity activity, final long userId) { MainActivity mainActivity = (MainActivity) activity; Account account = mainActivity.getCurrentAccount(); - if (userId == account.userID) { + if (userId == account.getUserId()) { textViewFollowed.setText(R.string.user_detail_followed_is_me); buttonFollow.setVisibility(View.GONE); } else { |