From 8b6309aff6ad794330cb5a98de7303b21762ece0 Mon Sep 17 00:00:00 2001
From: Connor McLaughlin <stenzek@gmail.com>
Date: Wed, 14 Oct 2020 18:07:12 +1000
Subject: [PATCH] Android: Add volume control to settings

---
 android/app/src/main/res/xml/audio_preferences.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/android/app/src/main/res/xml/audio_preferences.xml b/android/app/src/main/res/xml/audio_preferences.xml
index 2749fac97..e85f42155 100644
--- a/android/app/src/main/res/xml/audio_preferences.xml
+++ b/android/app/src/main/res/xml/audio_preferences.xml
@@ -17,6 +17,15 @@
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto">
 
+        <SeekBarPreference
+            app:key="Audio/OutputVolume"
+            app:title="Volume"
+            app:summary="Controls the volume of the emulator's sound output."
+            app:defaultValue="100"
+            android:max="100"
+            app:min="0"
+            app:iconSpaceReserved="false"
+            app:showSeekBarValue="true" />
         <SwitchPreferenceCompat
             app:key="Audio/OutputMuted"
             app:title="Mute All Sound"