forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dolphin-emu#11460 from t895/reveal-settings
Android: Reveal several hidden settings
- Loading branch information
Showing
12 changed files
with
405 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...main/java/org/dolphinemu/dolphinemu/features/settings/model/view/DateTimeChoiceSetting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
package org.dolphinemu.dolphinemu.features.settings.model.view | ||
|
||
import android.content.Context | ||
import org.dolphinemu.dolphinemu.features.settings.model.AbstractSetting | ||
import org.dolphinemu.dolphinemu.features.settings.model.AbstractStringSetting | ||
import org.dolphinemu.dolphinemu.features.settings.model.Settings | ||
|
||
class DateTimeChoiceSetting( | ||
context: Context, | ||
private val setting: AbstractStringSetting, | ||
nameId: Int, | ||
descriptionId: Int | ||
) : SettingsItem(context, nameId, descriptionId) { | ||
override fun getType(): Int { | ||
return TYPE_DATETIME_CHOICE | ||
} | ||
|
||
override fun getSetting(): AbstractSetting { | ||
return setting | ||
} | ||
|
||
fun setSelectedValue(settings: Settings?, selection: String) { | ||
setting.setString(settings, selection) | ||
} | ||
|
||
fun getSelectedValue(settings: Settings): String { | ||
return setting.getString(settings) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.