mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Merge pull request #335 from meshtastic/tabLayout
fix tabLayout smoothScroll crash
This commit is contained in:
commit
f2f550e68b
1 changed files with 1 additions and 1 deletions
|
|
@ -482,7 +482,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
binding.pager.isUserInputEnabled =
|
||||
false // Gestures for screen switching doesn't work so good with the map view
|
||||
// pager.offscreenPageLimit = 0 // Don't keep any offscreen pages around, because we want to make sure our bluetooth scanning stops
|
||||
TabLayoutMediator(binding.tabLayout, binding.pager) { tab, position ->
|
||||
TabLayoutMediator(binding.tabLayout, binding.pager, false, false) { tab, position ->
|
||||
// tab.text = tabInfos[position].text // I think it looks better with icons only
|
||||
tab.icon = ContextCompat.getDrawable(this, tabInfos[position].icon)
|
||||
}.attach()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue