From 67c2e89d2c3d69df4c983d34500e111fc0b9cd6f Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Sat, 11 Mar 2023 00:34:33 -0500 Subject: [PATCH] android: Convert MainView to Kotlin --- .../ui/main/{MainView.java => MainView.kt} | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) rename src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/{MainView.java => MainView.kt} (64%) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt similarity index 64% rename from src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java rename to src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt index c2ff086ee..5f5138a88 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.java +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainView.kt @@ -1,25 +1,23 @@ -package org.yuzu.yuzu_emu.ui.main; +package org.yuzu.yuzu_emu.ui.main /** * Abstraction for the screen that shows on application launch. * Implementations will differ primarily to target touch-screen * or non-touch screen devices. */ -public interface MainView { +interface MainView { /** * Pass the view the native library's version string. Displaying * it is optional. * * @param version A string pulled from native code. */ - void setVersionString(String version); + fun setVersionString(version: String) /** * Tell the view to refresh its contents. */ - void refresh(); - - void launchSettingsActivity(String menuTag); - - void launchFileListActivity(int request); + fun refresh() + fun launchSettingsActivity(menuTag: String) + fun launchFileListActivity(request: Int) }