mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
refactoring
This commit is contained in:
parent
82292cf503
commit
ded085bf2b
3 changed files with 27 additions and 17 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
package org.geometerplus.android.fbreader.preferences.fileChooser;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
|
@ -38,6 +39,17 @@ class FileChooserStringPreference extends FileChooserPreference {
|
|||
setSummary(getStringValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onClick() {
|
||||
FileChooserUtil.runDirectoryChooser(
|
||||
(Activity)getContext(),
|
||||
myRegCode,
|
||||
myResource.getResource("chooserTitle").getValue(),
|
||||
getStringValue(),
|
||||
myChooseWritableDirectoriesOnly
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getStringValue() {
|
||||
return myOption.getValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue