comparison android/DWindows.kt @ 2848:6790bea27685

Android: Fix warning about deprecated overrided function after upgrading to SDK API 33.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 18 Oct 2022 08:41:42 +0000
parents ca3cc0e1c563
children 5018df4f952e
comparison
equal deleted inserted replaced
2847:ca3cc0e1c563 2848:6790bea27685
2809 } 2809 }
2810 } 2810 }
2811 return false 2811 return false
2812 } 2812 }
2813 2813
2814 @Deprecated("Deprecated in Java")
2814 override fun onBackPressed() { 2815 override fun onBackPressed() {
2815 if(windowLayout != null) { 2816 if(windowLayout != null) {
2816 val adapter: DWTabViewPagerAdapter = windowLayout!!.adapter as DWTabViewPagerAdapter 2817 val adapter: DWTabViewPagerAdapter = windowLayout!!.adapter as DWTabViewPagerAdapter
2817 val index = windowLayout!!.currentItem 2818 val index = windowLayout!!.currentItem
2818 val count = windowStyles.count() 2819 val count = windowStyles.count()