]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/PreferenceActivity.java
Work around Android crash bug in getExternalFilesDir.
[Dictionary.git] / src / com / hughes / android / dictionary / PreferenceActivity.java
index 2d66bf945235b48375e5730005a689c89906a5fb..4481f46a737db3a568132bb828be286ed7e9591b 100644 (file)
@@ -104,7 +104,11 @@ public class PreferenceActivity extends android.preference.PreferenceActivity
                         dirs += "\n" + f.getAbsolutePath();
                 }
             } else {
-                File efd = getApplicationContext().getExternalFilesDir(null);
+                File efd = null;
+                try {
+                    efd = getApplicationContext().getExternalFilesDir(null);
+                } catch (Exception e) {
+                }
                 if (efd != null) {
                     String externalFilesDir = efd.getAbsolutePath();
                     if (new File(externalFilesDir).canWrite())