rename to fullPath
to avoid confusion
This commit is contained in:
parent
8019d8981c
commit
174635d936
1 changed files with 4 additions and 4 deletions
|
@ -42,9 +42,9 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
||||||
val operation: String by lazy { intent.getStringExtra("OPERATION") }
|
val operation: String by lazy { intent.getStringExtra("OPERATION") }
|
||||||
val repoPath: String by lazy { intent.getStringExtra("REPO_PATH") }
|
val repoPath: String by lazy { intent.getStringExtra("REPO_PATH") }
|
||||||
|
|
||||||
val path: String by lazy { intent.getStringExtra("FILE_PATH") }
|
val fullPath: String by lazy { intent.getStringExtra("FILE_PATH") }
|
||||||
val name: String by lazy { getName(path, repoPath) }
|
val name: String by lazy { getName(fullPath, repoPath) }
|
||||||
val relativeParentPath: String by lazy { getParentPath(path, repoPath) }
|
val relativeParentPath: String by lazy { getParentPath(fullPath, repoPath) }
|
||||||
|
|
||||||
val settings: SharedPreferences by lazy { PreferenceManager.getDefaultSharedPreferences(this) }
|
val settings: SharedPreferences by lazy { PreferenceManager.getDefaultSharedPreferences(this) }
|
||||||
val keyIDs: MutableSet<String> by lazy { settings.getStringSet("openpgp_key_ids_set", emptySet()) }
|
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()
|
val data = receivedIntent ?: Intent()
|
||||||
data.action = ACTION_DECRYPT_VERIFY
|
data.action = ACTION_DECRYPT_VERIFY
|
||||||
|
|
||||||
val iStream = FileUtils.openInputStream(File(path))
|
val iStream = FileUtils.openInputStream(File(fullPath))
|
||||||
val oStream = ByteArrayOutputStream()
|
val oStream = ByteArrayOutputStream()
|
||||||
|
|
||||||
api?.executeApiAsync(data, iStream, oStream, { result: Intent? ->
|
api?.executeApiAsync(data, iStream, oStream, { result: Intent? ->
|
||||||
|
|
Loading…
Reference in a new issue