mirror of
				https://github.com/SimpleMobileTools/Simple-Launcher.git
				synced 2025-06-05 21:59:15 +02:00 
			
		
		
		
	Use a getter for iconSize instead of property access
This commit is contained in:
		| @@ -528,7 +528,7 @@ class MainActivity : SimpleActivity(), FlingListener { | ||||
|             y - iconSize / 2f | ||||
|         } else { | ||||
|             val clickableRect = home_screen_grid.getClickableRect(gridItem) | ||||
|             clickableRect.top.toFloat() - home_screen_grid.iconSize / 2f | ||||
|             clickableRect.top.toFloat() - home_screen_grid.getCurrentIconSize() / 2f | ||||
|         } | ||||
|  | ||||
|         home_screen_popup_menu_anchor.x = x | ||||
|   | ||||
| @@ -67,8 +67,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel | ||||
|     private var resizedWidget: HomeScreenGridItem? = null | ||||
|     private var isFirstDraw = true | ||||
|     private var redrawWidgets = false | ||||
|     var iconSize = 0 | ||||
|         private set | ||||
|     private var iconSize = 0 | ||||
|  | ||||
|     private var lastPage = 0 | ||||
|     private var currentPage = 0 | ||||
| @@ -1081,6 +1080,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel | ||||
|         return false | ||||
|     } | ||||
|  | ||||
|     fun getCurrentIconSize(): Int = iconSize | ||||
|  | ||||
|     private fun handlePageChange(redraw: Boolean = false) { | ||||
|         pageChangeEnabled = false | ||||
|         pageChangeIndicatorsAlpha = 0f | ||||
|   | ||||
		Reference in New Issue
	
	Block a user