mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 14:45:28 +03:00
Fix Kotlin compilation errors from incorrect overloading of null-safe types
This commit is contained in:
parent
bf491f71f9
commit
c4bf92a49f
@ -150,13 +150,13 @@ class OnScreenControllerView @JvmOverloads constructor(context : Context, attrs
|
||||
invalidate()
|
||||
}
|
||||
addListener(object : AnimatorListenerAdapter() {
|
||||
override fun onAnimationCancel(animation : Animator?) {
|
||||
override fun onAnimationCancel(animation : Animator) {
|
||||
super.onAnimationCancel(animation)
|
||||
onAnimationEnd(animation)
|
||||
onStickStateChangedListener?.invoke(joystick.stickId, PointF(0f, 0f))
|
||||
}
|
||||
|
||||
override fun onAnimationEnd(animation : Animator?) {
|
||||
override fun onAnimationEnd(animation : Animator) {
|
||||
super.onAnimationEnd(animation)
|
||||
if (joystick.shortDoubleTapped)
|
||||
onButtonStateChangedListener?.invoke(joystick.buttonId, ButtonState.Released)
|
||||
|
@ -52,9 +52,9 @@ interface ByteBufferSerializable : Parcelable {
|
||||
return 0
|
||||
}
|
||||
|
||||
override fun writeToParcel(out : Parcel?, flags : Int) {
|
||||
out?.writeString(this.javaClass.name)
|
||||
out?.writeByteArray(this.writeToByteBuffer(ByteBuffer.allocate(ByteBufferSerializationData.getSerializationData(this::class).bytes)).array())
|
||||
override fun writeToParcel(out : Parcel, flags : Int) {
|
||||
out.writeString(this.javaClass.name)
|
||||
out.writeByteArray(this.writeToByteBuffer(ByteBuffer.allocate(ByteBufferSerializationData.getSerializationData(this::class).bytes)).array())
|
||||
}
|
||||
|
||||
class ParcelableCreator : Parcelable.ClassLoaderCreator<ByteBufferSerializable> {
|
||||
|
Loading…
Reference in New Issue
Block a user