Hide recycler view and show view pager

This commit is contained in:
Alex Sytnyk 2018-06-26 17:21:10 +03:00
parent 54f1b62845
commit da1e23ffa6
2 changed files with 3 additions and 5 deletions

View file

@ -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"

View file

@ -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
}