bug fix
This commit is contained in:
parent
d391aca134
commit
3dff70d4b1
@ -392,7 +392,7 @@ public class UserProfile extends AppCompatActivity implements OnClickListener,
|
|||||||
switch (v.getId()) {
|
switch (v.getId()) {
|
||||||
case R.id.following:
|
case R.id.following:
|
||||||
if (user != null && properties != null) {
|
if (user != null && properties != null) {
|
||||||
if (!user.isLocked() || properties.isFriend()) {
|
if (!user.isLocked() || properties.isFriend() || isHome) {
|
||||||
Intent following = new Intent(this, UserDetail.class);
|
Intent following = new Intent(this, UserDetail.class);
|
||||||
following.putExtra(KEY_USERDETAIL_ID, userId);
|
following.putExtra(KEY_USERDETAIL_ID, userId);
|
||||||
following.putExtra(KEY_USERDETAIL_MODE, USERLIST_FRIENDS);
|
following.putExtra(KEY_USERDETAIL_MODE, USERLIST_FRIENDS);
|
||||||
@ -403,7 +403,7 @@ public class UserProfile extends AppCompatActivity implements OnClickListener,
|
|||||||
|
|
||||||
case R.id.follower:
|
case R.id.follower:
|
||||||
if (user != null && properties != null) {
|
if (user != null && properties != null) {
|
||||||
if (!user.isLocked() || properties.isFriend()) {
|
if (!user.isLocked() || properties.isFriend() || isHome) {
|
||||||
Intent follower = new Intent(this, UserDetail.class);
|
Intent follower = new Intent(this, UserDetail.class);
|
||||||
follower.putExtra(KEY_USERDETAIL_ID, userId);
|
follower.putExtra(KEY_USERDETAIL_ID, userId);
|
||||||
follower.putExtra(KEY_USERDETAIL_MODE, USERLIST_FOLLOWER);
|
follower.putExtra(KEY_USERDETAIL_MODE, USERLIST_FOLLOWER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user