diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-08-21 01:07:35 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-08-21 01:11:06 +0530 |
commit | 7a7e58f6dd0881d032742b1f7997e86e1ef56d49 (patch) | |
tree | f10a58cad1c925da4211ee1f9d493f6df451f35e /app/src/main/java/com | |
parent | 80b3a1559264685a23ef4058a91c98241e55c939 (diff) |
Revert "Reland symlink support (#1020)"
This does not work below API 27.
Fixes #1032
This reverts commit 087ab547c123e90eb4207bfe9080486d54fbf3ef.
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/DecryptActivity.kt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/DecryptActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/DecryptActivity.kt index a697f2ba..79f9e6da 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/DecryptActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/DecryptActivity.kt @@ -12,7 +12,6 @@ import android.text.method.PasswordTransformationMethod import android.view.Menu import android.view.MenuItem import android.view.View -import android.widget.Toast import androidx.activity.result.IntentSenderRequest import androidx.activity.result.contract.ActivityResultContracts.StartIntentSenderForResult import androidx.lifecycle.lifecycleScope @@ -24,7 +23,6 @@ import com.zeapo.pwdstore.utils.PreferenceKeys import com.zeapo.pwdstore.utils.viewBinding import java.io.ByteArrayOutputStream import java.io.File -import java.io.FileNotFoundException import kotlin.time.ExperimentalTime import kotlin.time.seconds import kotlinx.coroutines.Dispatchers @@ -137,13 +135,7 @@ class DecryptActivity : BasePgpActivity(), OpenPgpServiceConnection.OnBound { val data = receivedIntent ?: Intent() data.action = OpenPgpApi.ACTION_DECRYPT_VERIFY - val inputStream = try { - File(fullPath).inputStream() - } catch (e: FileNotFoundException) { - Toast.makeText(this, getString(R.string.error_broken_symlink), Toast.LENGTH_SHORT).show() - finish() - return - } + val inputStream = File(fullPath).inputStream() val outputStream = ByteArrayOutputStream() lifecycleScope.launch(Dispatchers.IO) { |