Enhance SD usage preference widget
Bug #579438 reported by
Guillaume Rosaire
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSatNav |
Fix Released
|
Medium
|
Guillaume Rosaire |
Bug Description
In http://
> One more thing.... I have a 16G sd card. I want to allocate about 1G of space to the cache (including wasted formatting space - so about 2-300M on the slider). That is really hard to select on the slider. I think I'd prefer a different widget. Even text entry would be better.
We should have something like an editable textfield in sync with the slider or better.
To post a comment you must log in.
It looks like revision 81 made some progress here. There is a problem with that implementation in that it doesn't move the slider when the text is updated. The following patch fixes this:
<pre> hlidskialf/ android/ preference/ SeekBarPreferen ce.java b/src/com/ hlidskialf/ android/ preference/ SeekBarPreferen ce.java hlidskialf/ android/ preference/ SeekBarPreferen ce.java hlidskialf/ android/ preference/ SeekBarPreferen ce.java valueOf( value);
diff --git a/src/com/
index e90b5d0..d735277 100644
--- a/src/com/
+++ b/src/com/
@@ -122,7 +122,7 @@ public class SeekBarPreference extends DialogPreference implements
String t = String.
mValueText. setText( mSuffix == null ? t : t.concat(mSuffix));
- mValue = value;
+ setProgress(value);
if (shouldPersist()) value);
persistInt(
</pre>