core: Update Hillshade Algorithms and add Color-Relief Layer support (#3965)
This commit is contained in:
@@ -23,7 +23,11 @@ class ViewPagerActivity : AppCompatActivity() {
|
||||
super.onCreate(savedInstanceState)
|
||||
binding = ActivityViewpagerBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
binding.viewPager.adapter = MapFragmentAdapter(this, supportFragmentManager)
|
||||
val adapter = MapFragmentAdapter(this, supportFragmentManager)
|
||||
binding.viewPager.adapter = adapter
|
||||
// Ensure all pages are instantiated so their titles are available to UI tests immediately
|
||||
// This keeps all 5 fragments in memory so PagerTabStrip shows all titles
|
||||
binding.viewPager.offscreenPageLimit = adapter.count
|
||||
}
|
||||
|
||||
override fun onRestoreInstanceState(savedInstanceState: Bundle) {
|
||||
|
||||
Reference in New Issue
Block a user