Hide recycler view and show view pager
This commit is contained in:
parent
54f1b62845
commit
da1e23ffa6
2 changed files with 3 additions and 5 deletions
|
@ -17,13 +17,14 @@
|
|||
android:id="@+id/groups_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="vertical"/>
|
||||
android:scrollbars="vertical"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<net.osmand.telegram.ui.views.LockableViewPager
|
||||
android:id="@+id/view_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone"/>
|
||||
android:visibility="visible"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatImageView
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -90,9 +90,6 @@ class MainActivity : AppCompatActivity(), TelegramListener {
|
|||
R.id.action_live_now -> pos = LIVE_NOW_TAB_POS
|
||||
}
|
||||
if (pos != -1 && pos != viewPager.currentItem) {
|
||||
// FIXME
|
||||
chatsView.visibility = if (pos == MY_LOCATION_TAB_POS) View.VISIBLE else View.GONE
|
||||
viewPager.visibility = if (pos == LIVE_NOW_TAB_POS) View.VISIBLE else View.GONE
|
||||
viewPager.currentItem = pos
|
||||
return@setOnNavigationItemSelectedListener true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue