I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 480dacb7 authored by str4d's avatar str4d
Browse files

Fixed warnings in SeekBarPreferences

parent 84edc743
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee ...@@ -90,7 +90,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee
mValueText.setGravity(Gravity.CENTER_HORIZONTAL); mValueText.setGravity(Gravity.CENTER_HORIZONTAL);
mValueText.setTextSize(32); mValueText.setTextSize(32);
params = new LinearLayout.LayoutParams( params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT); LinearLayout.LayoutParams.WRAP_CONTENT);
layout.addView(mValueText, params); layout.addView(mValueText, params);
...@@ -99,7 +99,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee ...@@ -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 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. // move it away from the edges to improve usability for the end-ranges.
mSeekBar.setPadding(6, 30, 6, 6); 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()) { if (shouldPersist()) {
mValue = Integer.parseInt(getPersistedString(mDefault)); mValue = Integer.parseInt(getPersistedString(mDefault));
...@@ -132,7 +132,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee ...@@ -132,7 +132,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee
if (shouldPersist()) { if (shouldPersist()) {
persistString(t); persistString(t);
} }
callChangeListener(new Integer(value)); callChangeListener(Integer.valueOf(value));
} }
public void onStartTrackingTouch(SeekBar seek) { public void onStartTrackingTouch(SeekBar seek) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment