From ad827155e6556713e61885dd26f93ff4746b2066 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 14 Oct 2020 17:45:23 +1000 Subject: [PATCH] Android: Re-add missing audio options --- .../stenzek/duckstation/SettingsActivity.java | 11 ++-- android/app/src/main/res/values/arrays.xml | 1 + .../src/main/res/xml/audio_preferences.xml | 56 +++++++++++++++++++ .../src/main/res/xml/general_preferences.xml | 2 +- 4 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 android/app/src/main/res/xml/audio_preferences.xml diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/SettingsActivity.java b/android/app/src/main/java/com/github/stenzek/duckstation/SettingsActivity.java index 8e031babe..fe4934069 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/SettingsActivity.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/SettingsActivity.java @@ -91,16 +91,19 @@ public class SettingsActivity extends AppCompatActivity { case 0: // General return new SettingsFragment(R.xml.general_preferences); - case 1: // Console + case 1: // Display return new SettingsFragment(R.xml.display_preferences); - case 2: // Enhancements + case 2: // Audio + return new SettingsFragment(R.xml.audio_preferences); + + case 3: // Enhancements return new SettingsFragment(R.xml.enhancements_preferences); - case 3: // Controllers + case 4: // Controllers return new SettingsFragment(R.xml.controllers_preferences); - case 4: // Advanced + case 5: // Advanced return new SettingsFragment(R.xml.advanced_preferences); default: diff --git a/android/app/src/main/res/values/arrays.xml b/android/app/src/main/res/values/arrays.xml index c424b1971..d8940d7f5 100644 --- a/android/app/src/main/res/values/arrays.xml +++ b/android/app/src/main/res/values/arrays.xml @@ -227,6 +227,7 @@ General Display + Audio Enhancements Controllers Advanced diff --git a/android/app/src/main/res/xml/audio_preferences.xml b/android/app/src/main/res/xml/audio_preferences.xml new file mode 100644 index 000000000..2749fac97 --- /dev/null +++ b/android/app/src/main/res/xml/audio_preferences.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + diff --git a/android/app/src/main/res/xml/general_preferences.xml b/android/app/src/main/res/xml/general_preferences.xml index 58e4eba24..7abc7e16d 100644 --- a/android/app/src/main/res/xml/general_preferences.xml +++ b/android/app/src/main/res/xml/general_preferences.xml @@ -38,7 +38,7 @@