mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
onAccept -> onDialogClosed
This commit is contained in:
parent
6cd5b5e228
commit
edffb5600b
4 changed files with 12 additions and 4 deletions
|
@ -51,7 +51,9 @@ class DictionaryPreference extends ZLStringListPreference {
|
||||||
setInitialValue(myOption.getValue());
|
setInitialValue(myOption.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAccept() {
|
@Override
|
||||||
|
protected void onDialogClosed(boolean result) {
|
||||||
|
super.onDialogClosed(result);
|
||||||
myOption.setValue(getValue());
|
myOption.setValue(getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,9 @@ class FontOption extends ZLStringListPreference {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAccept() {
|
@Override
|
||||||
|
protected void onDialogClosed(boolean result) {
|
||||||
|
super.onDialogClosed(result);
|
||||||
final String value = getValue();
|
final String value = getValue();
|
||||||
myOption.setValue(UNCHANGED.equals(value) ? "" : value);
|
myOption.setValue(UNCHANGED.equals(value) ? "" : value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,9 @@ class FontStylePreference extends ZLStringListPreference {
|
||||||
setInitialValue(myValues[intValue]);
|
setInitialValue(myValues[intValue]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAccept() {
|
@Override
|
||||||
|
protected void onDialogClosed(boolean result) {
|
||||||
|
super.onDialogClosed(result);
|
||||||
final int intValue = findIndexOfValue(getValue());
|
final int intValue = findIndexOfValue(getValue());
|
||||||
myBoldOption.setValue((intValue & 0x1) == 0x1);
|
myBoldOption.setValue((intValue & 0x1) == 0x1);
|
||||||
myItalicOption.setValue((intValue & 0x2) == 0x2);
|
myItalicOption.setValue((intValue & 0x2) == 0x2);
|
||||||
|
|
|
@ -49,7 +49,9 @@ class ZLIntegerChoicePreference extends ZLStringListPreference {
|
||||||
setInitialValue(valueResourceKeys[index]);
|
setInitialValue(valueResourceKeys[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAccept() {
|
@Override
|
||||||
|
protected void onDialogClosed(boolean result) {
|
||||||
|
super.onDialogClosed(result);
|
||||||
myOption.setValue(myValues[findIndexOfValue(getValue())]);
|
myOption.setValue(myValues[findIndexOfValue(getValue())]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue