diff options
author | Zeapo <mohamed@zenadi.com> | 2014-08-06 18:23:25 +0100 |
---|---|---|
committer | Zeapo <mohamed@zenadi.com> | 2014-08-06 18:23:25 +0100 |
commit | 17ba2275ec41432d2999f9dc075299f44cacde7c (patch) | |
tree | b4b749a3e6b4d6a8debd940d16a26463dd6407bf /app | |
parent | b1896c42216b703aee71b83be5e2718fd1f93ec4 (diff) |
corrected a bug where a new fragment was added while not needed
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 14 | ||||
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java index c207f382..890a76bc 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java @@ -1,5 +1,6 @@ package com.zeapo.pwdstore; +import android.app.ActionBar; import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; @@ -87,6 +88,11 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI } return true; + + case android.R.id.home: + getFragmentManager().popBackStack(); + return true; + default: break; } @@ -105,14 +111,14 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI } private void checkLocalRepository() { - // if we are coming back from gpg do not anything - if (this.leftActivity) - return; - checkLocalRepository(PasswordRepository.getWorkTree()); } private void checkLocalRepository(File localDir) { + // if we are coming back from gpg do not anything + if (this.leftActivity) + return; + int status = 0; FragmentManager fragmentManager = getFragmentManager(); diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java index 9e44cdf2..fec575ac 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -94,8 +94,6 @@ public class PgpHandler extends Activity { mServiceConnection.bindToService(); ActionBar actionBar = getActionBar(); -// actionBar.setHomeButtonEnabled(true); -// actionBar.setDisplayShowHomeEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true); } |