1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 09:49:19 +02:00

refactoring

This commit is contained in:
Nikolay Pultsin 2014-05-03 03:30:54 +01:00
parent 82292cf503
commit ded085bf2b
3 changed files with 27 additions and 17 deletions

View file

@ -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();