mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 17:11:06 +02:00
Android - People - Hide visit option if user is offline
This commit is contained in:
parent
6b2de05065
commit
dd5bd0229a
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ import android.view.ViewGroup;
|
|||
import com.sothree.slidinguppanel.SlidingUpPanelLayout;
|
||||
|
||||
import io.highfidelity.hifiinterface.R;
|
||||
import io.highfidelity.hifiinterface.provider.UsersProvider;
|
||||
import io.highfidelity.hifiinterface.view.UserListAdapter;
|
||||
|
||||
public class FriendsFragment extends Fragment {
|
||||
|
@ -61,6 +62,7 @@ public class FriendsFragment extends Fragment {
|
|||
// ..
|
||||
// 2. adapt options
|
||||
// ..
|
||||
rootView.findViewById(R.id.userActionVisit).setVisibility(user.online?View.VISIBLE:View.GONE);
|
||||
// 3. show
|
||||
mSlidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.EXPANDED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue