Make serialVersionUID static

* Some minor cleanup
This commit is contained in:
Willi Ye 2021-02-05 21:19:30 +01:00 committed by ◱ Mark
parent dca632d0d8
commit 571e189ecd
2 changed files with 6 additions and 3 deletions

View File

@ -45,7 +45,10 @@ open class Controller(val id : Int, var type : ControllerType, var rumbleDeviceD
/**
* The current version of this class so that different versions won't be deserialized mistakenly
*/
private val serialVersionUID = 0L
companion object {
@JvmStatic
private val serialVersionUID = 6529685098267757690L
}
}
/**

View File

@ -249,8 +249,8 @@ class Controls(onScreenControllerView : OnScreenControllerView) {
* We can take any of the global scale variables from the buttons
*/
var globalScale
get() = circularButtons[0].config.globalScale
get() = circularButtons.first().config.globalScale
set(value) {
circularButtons[0].config.globalScale = value
circularButtons.first().config.globalScale = value
}
}