From 480dacb7f2c500ca56d2f91a2a2a44fdee4e2e14 Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Wed, 21 Aug 2013 11:39:42 +0000 Subject: [PATCH] Fixed warnings in SeekBarPreferences --- .../hlidskialf/android/preference/SeekBarPreference.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/hlidskialf/android/preference/SeekBarPreference.java b/src/com/hlidskialf/android/preference/SeekBarPreference.java index 242bbc017..723d0d5d0 100644 --- a/src/com/hlidskialf/android/preference/SeekBarPreference.java +++ b/src/com/hlidskialf/android/preference/SeekBarPreference.java @@ -90,7 +90,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee mValueText.setGravity(Gravity.CENTER_HORIZONTAL); mValueText.setTextSize(32); params = new LinearLayout.LayoutParams( - LinearLayout.LayoutParams.FILL_PARENT, + LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT); layout.addView(mValueText, params); @@ -99,7 +99,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee // Move the bar away from the changing text, so you can see it, and // move it away from the edges to improve usability for the end-ranges. mSeekBar.setPadding(6, 30, 6, 6); - layout.addView(mSeekBar, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)); + layout.addView(mSeekBar, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)); if (shouldPersist()) { mValue = Integer.parseInt(getPersistedString(mDefault)); @@ -132,7 +132,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee if (shouldPersist()) { persistString(t); } - callChangeListener(new Integer(value)); + callChangeListener(Integer.valueOf(value)); } public void onStartTrackingTouch(SeekBar seek) { -- GitLab