Permalink
Browse files

fixed initial dropbox sync issue

  • Loading branch information...
1 parent 4aab4b1 commit 2ee76e65335bd134942936889b33a0eaed4dfea2 @janwillemb committed Feb 1, 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.janwillemboer.ema" android:versionCode="6"
- android:versionName="2.0.6">
+ package="com.janwillemboer.ema" android:versionCode="7"
+ android:versionName="2.0.7">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<provider android:name=".LocalFileContentProvider"
android:authorities="com.janwillemboer.ema.localfile" />
@@ -3,7 +3,7 @@
<string name="about">About</string>
<string name="about_text">![Ema Personal
Wiki](http://janwillemboer.nl/ema/android/about_ema.png)\n\n
- **Ema Personal Wiki for Android**, version 1.0, is a notebook with linkable
+ **Ema Personal Wiki for Android** is a notebook with linkable
pages for tracking your ideas, tasks, projects, notes,
brainstorms - in short, your life - in the most flexible way. \n\n
This software was written by Jan Willem Boer in 2010. You can contact him
@@ -51,7 +51,7 @@
![Ema Personal
Wiki](http://janwillemboer.nl/ema/android/about_ema.png)\n\n
- Ema Personal Wiki, version 1.0, is a notebook with linkable pages for
+ Ema Personal Wiki is a notebook with linkable pages for
tracking your ideas, tasks, projects, notes, brainstorms - in short,
your life - in the most flexible way.
If you have any further
@@ -38,7 +38,7 @@ public PagesDal(Context ctx) throws IOException {
R.string.storage_dir_creation_failed).toString());
}
- createBackup("2", isNewInstallation);
+ //createBackup("2", isNewInstallation);
createAndReadCss();
@@ -25,9 +25,13 @@ public DropboxWrapper(DropboxAPI<AndroidAuthSession> api) {
}
public Entry getOrCreateFolder(String name) throws DropboxException {
- Entry retval = mAPI.metadata(name, 0, null, true, null);
- if (retval.isDir) {
- return retval;
+ try {
+ Entry retval = mAPI.metadata(name, 0, null, true, null);
+ if (retval.isDir) {
+ return retval;
+ }
+ } catch (DropboxException ex) {
+
}
return mAPI.createFolder(name);
}

0 comments on commit 2ee76e6

Please sign in to comment.