Skip to content
Browse files

Forgot to save dropbox path.

  • Loading branch information...
1 parent 20d33ff commit d44089f6175b7a1778db56ec78eb378db3eb3b54 @hdweiss hdweiss committed Dec 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/matburt/mobileorg/Gui/Wizard/Wizards/DropboxWizard.java
View
4 src/com/matburt/mobileorg/Gui/Wizard/Wizards/DropboxWizard.java
@@ -27,6 +27,7 @@
private TextView dropboxAccountInfo;
private DropboxAPI<AndroidAuthSession> dropboxApi;
+ private FolderAdapter directoryAdapter;
private boolean isLoggedIn = false;
private boolean dropboxLoginAttempted = false;
@@ -82,7 +83,7 @@ public View createDropboxList() {
// setup directory browser
DropboxDirectoryBrowser directory = new DropboxDirectoryBrowser(context, dropboxApi);
// setup directory browser adapter
- FolderAdapter directoryAdapter = new FolderAdapter(context, R.layout.folder_adapter_row,
+ directoryAdapter = new FolderAdapter(context, R.layout.folder_adapter_row,
directory.listFiles());
directoryAdapter
.setDoneButton((Button) view.findViewById(R.id.wizard_done_button));
@@ -157,6 +158,7 @@ public void saveSettings() {
Editor editor = prefs.edit();
editor.putString("syncSource", "dropbox");
+ editor.putString("dropboxPath", directoryAdapter.getCheckedDirectory() + "/");
editor.commit();
}
}

0 comments on commit d44089f

Please sign in to comment.
Something went wrong with that request. Please try again.