diff --git a/app/src/main/java/emu/skyline/SettingsActivity.kt b/app/src/main/java/emu/skyline/SettingsActivity.kt index 12d1dadb..e074391f 100644 --- a/app/src/main/java/emu/skyline/SettingsActivity.kt +++ b/app/src/main/java/emu/skyline/SettingsActivity.kt @@ -12,6 +12,7 @@ import androidx.appcompat.app.AppCompatActivity import androidx.coordinatorlayout.widget.CoordinatorLayout import androidx.preference.CheckBoxPreference import androidx.preference.Preference +import androidx.preference.PreferenceCategory import androidx.preference.PreferenceFragmentCompat import emu.skyline.databinding.SettingsActivityBinding import emu.skyline.preference.IntegerListPreference @@ -96,6 +97,13 @@ class SettingsActivity : AppCompatActivity() { @Suppress("SENSELESS_COMPARISON") if (BuildConfig.BUILD_TYPE != "release") findPreference("category_debug")?.isVisible = true + + + resources.getStringArray(R.array.credits_entries).asIterable().shuffled().forEach { + findPreference("category_credits")?.addPreference(Preference(context!!).apply { + title = it + }) + } } override fun onDisplayPreferenceDialog(preference : Preference) { diff --git a/app/src/main/res/values/array.xml b/app/src/main/res/values/array.xml index 85792098..156e4df8 100644 --- a/app/src/main/res/values/array.xml +++ b/app/src/main/res/values/array.xml @@ -90,4 +90,11 @@ 0 8 + + j0hnnybrav0 + Ell Jensen + Pete y los Androides + ArkSource + 程家小将 +