mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
refactoring for better compatibility with multidir settings
This commit is contained in:
parent
69b426203e
commit
471cef831c
4 changed files with 22 additions and 5 deletions
|
@ -20,10 +20,13 @@
|
|||
package org.geometerplus.android.fbreader.preferences.fileChooser;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import org.geometerplus.zlibrary.core.options.ZLStringOption;
|
||||
import org.geometerplus.zlibrary.core.resources.ZLResource;
|
||||
|
||||
import org.geometerplus.android.util.FileChooserUtil;
|
||||
|
||||
class FileChooserStringPreference extends FileChooserPreference {
|
||||
private final ZLStringOption myOption;
|
||||
|
||||
|
@ -39,6 +42,11 @@ class FileChooserStringPreference extends FileChooserPreference {
|
|||
return myOption.getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setValueFromIntent(Intent data) {
|
||||
setValue(FileChooserUtil.pathFromData(data));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setValueInternal(String value) {
|
||||
final String currentValue = myOption.getValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue