diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2017-08-02 11:21:15 +0100 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2017-08-10 11:10:29 +0200 |
commit | 174635d93683c1319e80dd438181610c4895bc8c (patch) | |
tree | cd3c17cbd05590d6898b06e29124716fddfaf4d7 /app/src/main | |
parent | 8019d8981ce69205d6cd4f6c76101f16c5ef1af8 (diff) |
rename to `fullPath` to avoid confusion
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt index 73c9f935..594531a6 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt @@ -42,9 +42,9 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { val operation: String by lazy { intent.getStringExtra("OPERATION") } val repoPath: String by lazy { intent.getStringExtra("REPO_PATH") } - val path: String by lazy { intent.getStringExtra("FILE_PATH") } - val name: String by lazy { getName(path, repoPath) } - val relativeParentPath: String by lazy { getParentPath(path, repoPath) } + val fullPath: String by lazy { intent.getStringExtra("FILE_PATH") } + val name: String by lazy { getName(fullPath, repoPath) } + val relativeParentPath: String by lazy { getParentPath(fullPath, repoPath) } val settings: SharedPreferences by lazy { PreferenceManager.getDefaultSharedPreferences(this) } val keyIDs: MutableSet<String> by lazy { settings.getStringSet("openpgp_key_ids_set", emptySet()) } @@ -179,7 +179,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { val data = receivedIntent ?: Intent() data.action = ACTION_DECRYPT_VERIFY - val iStream = FileUtils.openInputStream(File(path)) + val iStream = FileUtils.openInputStream(File(fullPath)) val oStream = ByteArrayOutputStream() api?.executeApiAsync(data, iStream, oStream, { result: Intent? -> |