diff options
author | zeapo <mohamed@zenadi.com> | 2014-12-16 23:25:55 +0100 |
---|---|---|
committer | zeapo <mohamed@zenadi.com> | 2014-12-16 23:27:30 +0100 |
commit | 47bb25adcbded5e05d4be60bf4eba3bf380f559c (patch) | |
tree | f80fc721969da486d6f7b7720296a18f3957b435 /app/src/main/java/com/zeapo | |
parent | f154dc30a4113665c2187be313477a236a790dc7 (diff) |
fix the the git fields and a small refactorv1.2.0.10
Diffstat (limited to 'app/src/main/java/com/zeapo')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 2 | ||||
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 11 | ||||
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java (renamed from app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java) | 4 | ||||
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitHandler.java (renamed from app/src/main/java/com/zeapo/pwdstore/GitHandler.java) | 4 |
4 files changed, 9 insertions, 12 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java index 860fc63f..8e502cc3 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java @@ -18,6 +18,8 @@ import android.view.MenuItem; import android.view.View; import com.zeapo.pwdstore.crypto.PgpHandler; +import com.zeapo.pwdstore.git.GitAsyncTask; +import com.zeapo.pwdstore.git.GitHandler; import com.zeapo.pwdstore.utils.PasswordItem; import com.zeapo.pwdstore.utils.PasswordRecyclerAdapter; import com.zeapo.pwdstore.utils.PasswordRepository; diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java index ff81632c..89c1cd36 100644 --- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java +++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java @@ -1,35 +1,26 @@ package com.zeapo.pwdstore; -import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; -import android.content.SharedPreferences; import android.net.Uri; import android.os.Bundle; import android.preference.Preference; -import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; -import android.preference.PreferenceManager; import android.support.v7.app.ActionBarActivity; import android.util.Log; -import android.view.Menu; import android.view.MenuItem; import com.zeapo.pwdstore.crypto.PgpHandler; +import com.zeapo.pwdstore.git.GitHandler; import com.zeapo.pwdstore.utils.PasswordRepository; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; -import org.eclipse.jgit.api.CloneCommand; -import org.eclipse.jgit.lib.Repository; import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; -import java.net.URI; public class UserPreference extends ActionBarActivity implements Preference.OnPreferenceClickListener { private final static int IMPORT_SSH_KEY = 1; diff --git a/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java index ddb3a060..add18278 100644 --- a/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java @@ -1,4 +1,4 @@ -package com.zeapo.pwdstore; +package com.zeapo.pwdstore.git; import android.app.Activity; import android.app.AlertDialog; @@ -6,6 +6,8 @@ import android.app.ProgressDialog; import android.content.DialogInterface; import android.os.AsyncTask; +import com.zeapo.pwdstore.PasswordStore; +import com.zeapo.pwdstore.R; import com.zeapo.pwdstore.utils.PasswordRepository; import org.apache.commons.io.FileUtils; diff --git a/app/src/main/java/com/zeapo/pwdstore/GitHandler.java b/app/src/main/java/com/zeapo/pwdstore/git/GitHandler.java index 497543b1..85872d65 100644 --- a/app/src/main/java/com/zeapo/pwdstore/GitHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitHandler.java @@ -1,4 +1,4 @@ -package com.zeapo.pwdstore; +package com.zeapo.pwdstore.git; import android.app.Activity; import android.app.AlertDialog; @@ -26,6 +26,8 @@ import com.jcraft.jsch.JSch; import com.jcraft.jsch.JSchException; import com.jcraft.jsch.Session; import com.jcraft.jsch.UserInfo; +import com.zeapo.pwdstore.R; +import com.zeapo.pwdstore.UserPreference; import com.zeapo.pwdstore.utils.PasswordRepository; import org.eclipse.jgit.api.CloneCommand; |