fix various lint warnings

This commit is contained in:
Kevin Hester 2021-02-21 11:34:43 +08:00
parent 09fb7f220d
commit 4a90bb2fc0
27 changed files with 89 additions and 89 deletions

View file

@ -413,7 +413,7 @@ class MainActivity : AppCompatActivity(), Logging,
// 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 ->
// tab.text = tabInfos[position].text // I think it looks better with icons only
tab.icon = getDrawable(tabInfos[position].icon)
tab.icon = ContextCompat.getDrawable(this, tabInfos[position].icon)
}.attach()
model.isConnected.observe(this, Observer { connected ->