diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ba6e6b54..5fbfbf75 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -140,6 +140,9 @@ THE SOFTWARE.
+
diff --git a/res/values/translatable.xml b/res/values/translatable.xml
index cd9a31e4..fe41cd20 100644
--- a/res/values/translatable.xml
+++ b/res/values/translatable.xml
@@ -152,8 +152,9 @@ THE SOFTWARE.
Pause when the headphones are unplugged.
Play When Plugged
Play when the headphones are plugged in. (Only works when the service is running.)
- Enable replay gain
- Read replay gain information from tags and decrease volume if needed
+ Replay Gain
+ Enable Replay Gain
+ Configure handling of Replay Gain information
Notifications
Notification Mode
diff --git a/res/xml/preference_audio.xml b/res/xml/preference_audio.xml
index 45f795b6..bbb46990 100644
--- a/res/xml/preference_audio.xml
+++ b/res/xml/preference_audio.xml
@@ -48,9 +48,12 @@ THE SOFTWARE.
android:title="@string/headset_play_title"
android:summary="@string/headset_play_summary"
android:defaultValue="false" />
-
+
+
+
+
diff --git a/res/xml/preference_replaygain.xml b/res/xml/preference_replaygain.xml
new file mode 100644
index 00000000..c4734ac8
--- /dev/null
+++ b/res/xml/preference_replaygain.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
diff --git a/src/ch/blinkenlights/android/vanilla/PreferencesActivity.java b/src/ch/blinkenlights/android/vanilla/PreferencesActivity.java
index 1eac82fc..f2d87dba 100644
--- a/src/ch/blinkenlights/android/vanilla/PreferencesActivity.java
+++ b/src/ch/blinkenlights/android/vanilla/PreferencesActivity.java
@@ -89,6 +89,32 @@ public class PreferencesActivity extends PreferenceActivity {
}
}
+ public static class ReplayGainActivity extends PreferenceActivity {
+ @SuppressWarnings("deprecation")
+ @Override
+ public void onCreate(Bundle savedInstanceState)
+ {
+ super.onCreate(savedInstanceState);
+ setTitle(R.string.replaygain);
+ addPreferencesFromResource(R.xml.preference_replaygain);
+ }
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item)
+ {
+ finish();
+ return true;
+ }
+ }
+
+ public static class ReplayGainFragment extends PreferenceFragment {
+ @Override
+ public void onCreate(Bundle savedInstanceState)
+ {
+ super.onCreate(savedInstanceState);
+ addPreferencesFromResource(R.xml.preference_replaygain);
+ }
+ }
+
public static class PlaybackActivity extends PreferenceActivity {
@SuppressWarnings("deprecation")
@Override