From 86ff7a660c194ed908c37344b543368a3f85d7df Mon Sep 17 00:00:00 2001 From: Zeapo Date: Wed, 30 Jul 2014 02:42:22 +0100 Subject: [PATCH] some visual update (fragment list is kept at position) and a preparation for decrypt activity --- app/app.iml | 2 + app/build.gradle | 3 + app/src/main/AndroidManifest.xml | 6 + .../pwdstore/OpenPgpProviderActivity.java | 382 ++++++++++++++++++ .../com/zeapo/pwdstore/PasswordFragment.java | 2 +- .../zeapo/pwdstore/PasswordRepository.java | 17 +- .../com/zeapo/pwdstore/PasswordStore.java | 63 +-- .../java/com/zeapo/pwdstore/PgpHandler.java | 56 +++ .../com/zeapo/pwdstore/UserPreference.java | 13 + .../main/res/layout/activity_pgp_handler.xml | 17 + app/src/main/res/layout/openpgp_provider.xml | 158 ++++++++ app/src/main/res/menu/agp_intents.xml | 8 + app/src/main/res/menu/pgp_handler.xml | 8 + app/src/main/res/menu/pwdstore.xml | 6 + app/src/main/res/values-large/refs.xml | 14 + app/src/main/res/values-sw600dp/refs.xml | 14 + app/src/main/res/values/arrays.xml | 26 ++ app/src/main/res/values/refs.xml | 14 + app/src/main/res/values/strings.xml | 3 +- .../res/values/strings_activity_git_clone.xml | 15 - app/src/main/res/xml/preference.xml | 12 + 21 files changed, 784 insertions(+), 55 deletions(-) create mode 100644 app/src/main/java/com/zeapo/pwdstore/OpenPgpProviderActivity.java create mode 100644 app/src/main/java/com/zeapo/pwdstore/PgpHandler.java create mode 100644 app/src/main/java/com/zeapo/pwdstore/UserPreference.java create mode 100644 app/src/main/res/layout/activity_pgp_handler.xml create mode 100644 app/src/main/res/layout/openpgp_provider.xml create mode 100644 app/src/main/res/menu/agp_intents.xml create mode 100644 app/src/main/res/menu/pgp_handler.xml create mode 100644 app/src/main/res/values-large/refs.xml create mode 100644 app/src/main/res/values-sw600dp/refs.xml create mode 100644 app/src/main/res/values/refs.xml delete mode 100644 app/src/main/res/values/strings_activity_git_clone.xml create mode 100644 app/src/main/res/xml/preference.xml diff --git a/app/app.iml b/app/app.iml index 0c8026a96..ddcb0a8d3 100644 --- a/app/app.iml +++ b/app/app.iml @@ -63,8 +63,10 @@ + + diff --git a/app/build.gradle b/app/build.gradle index 0c82ca2fb..8e039e215 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,6 +21,9 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) + compile project(':libraries:openpgp-api-lib') compile 'org.eclipse.jgit:org.eclipse.jgit:3.4.+' compile 'org.apache.commons:commons-io:1.3.2' + // You must install or update the Support Repository through the SDK manager to use this dependency. + compile 'com.android.support:support-v4:19.+' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 16210fdcc..edec0fa14 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -24,6 +24,12 @@ android:name=".GitClone" android:label="@string/title_activity_git_clone" > + + + + + + @layout/fragment_password_grid + + \ No newline at end of file diff --git a/app/src/main/res/values-sw600dp/refs.xml b/app/src/main/res/values-sw600dp/refs.xml new file mode 100644 index 000000000..975e10faf --- /dev/null +++ b/app/src/main/res/values-sw600dp/refs.xml @@ -0,0 +1,14 @@ + + + + + + @layout/fragment_password_grid + + \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 1e27627b3..b0a3dc7c6 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -9,4 +9,30 @@ https:// http:// + + + + Every 1 second + + Every 5 seconds + + Every 30 seconds + + Every 1 minute + + Every 5 minutes + + + + + 1000 + + 5000 + + 30000 + + 60000 + + 300000 + \ No newline at end of file diff --git a/app/src/main/res/values/refs.xml b/app/src/main/res/values/refs.xml new file mode 100644 index 000000000..46592ab7c --- /dev/null +++ b/app/src/main/res/values/refs.xml @@ -0,0 +1,14 @@ + + + + + + @layout/fragment_password_list + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3ff38c1c3..c7e63c85c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Target directory already exist. Current version support only a single store. Do you want to delete the current password store directory? Delete directory Cancel - + Clone repository Password store empty @@ -22,5 +22,6 @@ The installed APG version is not supported. Password Store doesn\'t have permission to access APG fully, please reinstall Password Store to fix that. AgpIntentsActivity + PgpHandler diff --git a/app/src/main/res/values/strings_activity_git_clone.xml b/app/src/main/res/values/strings_activity_git_clone.xml deleted file mode 100644 index bde00dba3..000000000 --- a/app/src/main/res/values/strings_activity_git_clone.xml +++ /dev/null @@ -1,15 +0,0 @@ - - Clone Repository - - - Email - Password (optional) - Sign in or register - Sign in - Switch Google+ account - Disconnect from Google+ - This email address is invalid - This password is too short - This password is incorrect - This field is required - diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml new file mode 100644 index 000000000..402a1bd33 --- /dev/null +++ b/app/src/main/res/xml/preference.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file