aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJohn Heroy <johnheroy@gmail.com>2015-10-20 11:10:29 -0700
committerJohn Heroy <johnheroy@gmail.com>2015-10-20 11:10:29 -0700
commitcd94615223e4ea94c31cc8071787a4c3aaf33cd6 (patch)
treefa867409ea6db636d482cfa2c26fb37503e62553 /app
parent5cbb3365050f97bf5490342c1303ec5c3c8fca9e (diff)
downloadconnectbot-cd94615223e4ea94c31cc8071787a4c3aaf33cd6.tar.gz
connectbot-cd94615223e4ea94c31cc8071787a4c3aaf33cd6.tar.bz2
connectbot-cd94615223e4ea94c31cc8071787a4c3aaf33cd6.zip
Set more padding on volume pref SeekBar for Lollipop and above
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/org/connectbot/util/VolumePreference.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/org/connectbot/util/VolumePreference.java b/app/src/main/java/org/connectbot/util/VolumePreference.java
index 09feb61..82685a4 100644
--- a/app/src/main/java/org/connectbot/util/VolumePreference.java
+++ b/app/src/main/java/org/connectbot/util/VolumePreference.java
@@ -18,6 +18,7 @@
package org.connectbot.util;
import android.content.Context;
+import android.os.Build;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
@@ -56,7 +57,13 @@ public class VolumePreference extends DialogPreference implements OnSeekBarChang
sb.setMax(100);
sb.setProgress((int) (getPersistedFloat(
PreferenceConstants.DEFAULT_BELL_VOLUME) * 100));
- sb.setPadding(10, 10, 10, 10);
+
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+ sb.setPadding(75, 70, 75, 10);
+ } else {
+ sb.setPadding(10, 10, 10, 10);
+ }
+
sb.setOnSeekBarChangeListener(this);
return sb;