mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-07 23:31:26 +00:00
Use the information_view layout for the custom preferences.
This commit is contained in:
@@ -91,6 +91,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee
|
||||
{
|
||||
super(context, attrs, defStyle);
|
||||
setDialogLayoutResource(R.layout.seekbar_preference);
|
||||
setLayoutResource(R.layout.information_view);
|
||||
setPositiveButtonText(android.R.string.ok);
|
||||
setNegativeButtonText(android.R.string.cancel);
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ public class SpeakPunctuationPreference extends DialogPreference {
|
||||
public SpeakPunctuationPreference(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
setDialogLayoutResource(R.layout.speak_punctuation_preference);
|
||||
setLayoutResource(R.layout.information_view);
|
||||
setPositiveButtonText(android.R.string.ok);
|
||||
setNegativeButtonText(android.R.string.cancel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user