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

select account and authenticate in preferences activity

This commit is contained in:
Nikolay Pultsin 2014-08-02 06:18:25 +01:00
parent cfe5420c19
commit 7b8f7141d6
7 changed files with 45 additions and 21 deletions

View file

@ -32,8 +32,8 @@ import org.geometerplus.android.util.FileChooserUtil;
class FileChooserStringPreference extends FileChooserPreference {
private final ZLStringOption myOption;
FileChooserStringPreference(Context context, ZLResource rootResource, String resourceKey, ZLStringOption option, int regCode, Runnable onValueSetAction) {
super(context, rootResource, resourceKey, true, regCode, onValueSetAction);
FileChooserStringPreference(Context context, ZLResource rootResource, String resourceKey, ZLStringOption option, int requestCode, Runnable onValueSetAction) {
super(context, rootResource, resourceKey, true, requestCode, onValueSetAction);
myOption = option;
setSummary(getStringValue());
@ -43,7 +43,7 @@ class FileChooserStringPreference extends FileChooserPreference {
protected void onClick() {
FileChooserUtil.runDirectoryChooser(
(Activity)getContext(),
myRegCode,
myRequestCode,
myResource.getResource("chooserTitle").getValue(),
getStringValue(),
myChooseWritableDirectoriesOnly