From aaee40b93360881efffeae48ca76e10701a06ac2 Mon Sep 17 00:00:00 2001 From: knuthy Date: Sat, 13 Sep 2014 10:01:21 +0200 Subject: Z2 didn't recognize file filter "file/*" so changed to */* --- app/src/main/java/com/zeapo/pwdstore/GitHandler.java | 1 + app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/com/zeapo') diff --git a/app/src/main/java/com/zeapo/pwdstore/GitHandler.java b/app/src/main/java/com/zeapo/pwdstore/GitHandler.java index 2544efe5..38af8a81 100644 --- a/app/src/main/java/com/zeapo/pwdstore/GitHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/GitHandler.java @@ -213,6 +213,7 @@ public class GitHandler extends Activity { protected void onPreExecute() { this.dialog.setMessage("Cloning..."); this.dialog.setCancelable(false); + // TODO: Handle a dialog leak when there is no error this.dialog.show(); } diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java index 49709169..69459226 100644 --- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java +++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java @@ -56,7 +56,7 @@ public class UserPreference extends PreferenceActivity implements Preference.OnP startActivityForResult(intent, 0); } else if (pref.getKey().equals("ssh_key")) { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); - intent.setType("file/*"); + intent.setType("*/*"); startActivityForResult(intent, 1); } return true; -- cgit v1.2.3