From f0304d80ef0815cdf78472bf9607f29c7d97f860 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Wed, 15 Mar 2023 03:30:54 -0400 Subject: [PATCH] Android: Convert SettingsViewModel to Kotlin --- .../features/settings/ui/SettingsViewModel.java | 17 ----------------- .../features/settings/ui/SettingsViewModel.kt | 10 ++++++++++ 2 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.java create mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.kt diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.java deleted file mode 100644 index fe67445cc0..0000000000 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.java +++ /dev/null @@ -1,17 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later - -package org.dolphinemu.dolphinemu.features.settings.ui; - -import androidx.lifecycle.ViewModel; - -import org.dolphinemu.dolphinemu.features.settings.model.Settings; - -public class SettingsViewModel extends ViewModel -{ - private final Settings mSettings = new Settings(); - - public Settings getSettings() - { - return mSettings; - } -} diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.kt new file mode 100644 index 0000000000..0685c23388 --- /dev/null +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/SettingsViewModel.kt @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +package org.dolphinemu.dolphinemu.features.settings.ui + +import androidx.lifecycle.ViewModel +import org.dolphinemu.dolphinemu.features.settings.model.Settings + +class SettingsViewModel : ViewModel() { + val settings = Settings() +}