mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 07:15:30 +03:00
Kotlin updates for compatibility with the Android R SDK preview
This commit is contained in:
parent
68fcb2e4e5
commit
af709efb15
@ -189,23 +189,23 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback {
|
||||
/**
|
||||
* This sets [surface] to [holder].surface and passes it into libskyline
|
||||
*/
|
||||
override fun surfaceCreated(holder : SurfaceHolder?) {
|
||||
override fun surfaceCreated(holder : SurfaceHolder) {
|
||||
Log.d("surfaceCreated", "Holder: ${holder.toString()}")
|
||||
surface = holder!!.surface
|
||||
surface = holder.surface
|
||||
setSurface(surface)
|
||||
}
|
||||
|
||||
/**
|
||||
* This is purely used for debugging surface changes
|
||||
*/
|
||||
override fun surfaceChanged(holder : SurfaceHolder?, format : Int, width : Int, height : Int) {
|
||||
override fun surfaceChanged(holder : SurfaceHolder, format : Int, width : Int, height : Int) {
|
||||
Log.d("surfaceChanged", "Holder: ${holder.toString()}, Format: $format, Width: $width, Height: $height")
|
||||
}
|
||||
|
||||
/**
|
||||
* This sets [surface] to null and passes it into libskyline
|
||||
*/
|
||||
override fun surfaceDestroyed(holder : SurfaceHolder?) {
|
||||
override fun surfaceDestroyed(holder : SurfaceHolder) {
|
||||
Log.d("surfaceDestroyed", "Holder: ${holder.toString()}")
|
||||
surface = null
|
||||
setSurface(surface)
|
||||
|
@ -105,7 +105,7 @@ class AppEntry : Serializable {
|
||||
output.writeUTF(author)
|
||||
output.writeBoolean(icon != null)
|
||||
if (icon != null)
|
||||
icon!!.compress(Bitmap.CompressFormat.WEBP, 100, output)
|
||||
icon!!.compress(Bitmap.CompressFormat.WEBP_LOSSY, 100, output)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user