mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	move refreshContacts a bit up
This commit is contained in:
		| @@ -266,6 +266,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { | |||||||
|     private fun getInactiveTabIndexes(activeIndex: Int) = arrayListOf(0, 1, 2).filter { it != activeIndex } |     private fun getInactiveTabIndexes(activeIndex: Int) = arrayListOf(0, 1, 2).filter { it != activeIndex } | ||||||
|  |  | ||||||
|     private fun initFragments() { |     private fun initFragments() { | ||||||
|  |         refreshContacts(true, true) | ||||||
|         viewpager.offscreenPageLimit = 2 |         viewpager.offscreenPageLimit = 2 | ||||||
|         viewpager.addOnPageChangeListener(object : ViewPager.OnPageChangeListener { |         viewpager.addOnPageChangeListener(object : ViewPager.OnPageChangeListener { | ||||||
|             override fun onPageScrollStateChanged(state: Int) { |             override fun onPageScrollStateChanged(state: Int) { | ||||||
| @@ -286,7 +287,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { | |||||||
|             } |             } | ||||||
|         }) |         }) | ||||||
|         viewpager.currentItem = config.lastUsedViewPagerPage |         viewpager.currentItem = config.lastUsedViewPagerPage | ||||||
|         refreshContacts(true, true) |  | ||||||
|  |  | ||||||
|         main_tabs_holder.onTabSelectionChanged( |         main_tabs_holder.onTabSelectionChanged( | ||||||
|                 tabUnselectedAction = { |                 tabUnselectedAction = { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user