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:
parent
cfe5420c19
commit
7b8f7141d6
7 changed files with 45 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue