mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 11:24:10 +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 com.sothree.slidinguppanel.SlidingUpPanelLayout;
|
||||||
|
|
||||||
import io.highfidelity.hifiinterface.R;
|
import io.highfidelity.hifiinterface.R;
|
||||||
|
import io.highfidelity.hifiinterface.provider.UsersProvider;
|
||||||
import io.highfidelity.hifiinterface.view.UserListAdapter;
|
import io.highfidelity.hifiinterface.view.UserListAdapter;
|
||||||
|
|
||||||
public class FriendsFragment extends Fragment {
|
public class FriendsFragment extends Fragment {
|
||||||
|
@ -61,6 +62,7 @@ public class FriendsFragment extends Fragment {
|
||||||
// ..
|
// ..
|
||||||
// 2. adapt options
|
// 2. adapt options
|
||||||
// ..
|
// ..
|
||||||
|
rootView.findViewById(R.id.userActionVisit).setVisibility(user.online?View.VISIBLE:View.GONE);
|
||||||
// 3. show
|
// 3. show
|
||||||
mSlidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.EXPANDED);
|
mSlidingUpPanelLayout.setPanelState(SlidingUpPanelLayout.PanelState.EXPANDED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue