mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 14:04:27 +00:00
SeekBarPreference: make formatter an explicit property instead of using the extras bundle.
This commit is contained in:
@@ -31,6 +31,7 @@ public class SeekBarPreference extends DialogPreference
|
||||
private int mProgress = 0;
|
||||
private int mMin = 0;
|
||||
private int mMax = 100;
|
||||
private String mFormatter = "%s";
|
||||
|
||||
public void setProgress(int progress) {
|
||||
mProgress = progress + mMin;
|
||||
@@ -62,6 +63,14 @@ public class SeekBarPreference extends DialogPreference
|
||||
return mMax;
|
||||
}
|
||||
|
||||
public void setFormatter(String formatter) {
|
||||
mFormatter = formatter;
|
||||
}
|
||||
|
||||
public String getFormatter() {
|
||||
return mFormatter;
|
||||
}
|
||||
|
||||
public SeekBarPreference(Context context, AttributeSet attrs, int defStyle)
|
||||
{
|
||||
super(context, attrs, defStyle);
|
||||
|
||||
Reference in New Issue
Block a user