From 72fcf46ca999326c0a6d9a8e3820babc6916240e Mon Sep 17 00:00:00 2001 From: Mohamed Date: Thu, 25 May 2017 21:07:26 +0100 Subject: follow: remove progress bar when waiting for OpenKeychain --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'app/src/main/java') 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 9a6ff61a..3b027830 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -566,9 +566,6 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne if (requestCode == REQUEST_CODE_EDIT && os != null) { try { if (returnToCiphertextField) { - findViewById(R.id.progress_bar).setVisibility(View.GONE); - findViewById(R.id.progress_bar_label).setVisibility(View.GONE); - findViewById(R.id.crypto_container).setVisibility(View.VISIBLE); Typeface monoTypeface = Typeface.createFromAsset(getAssets(), "fonts/sourcecodepro.ttf"); @@ -600,11 +597,6 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED: { Log.i("PgpHandler", "RESULT_CODE_USER_INTERACTION_REQUIRED"); - View progress_bar_label = findViewById(R.id.progress_bar_label); - if (progress_bar_label != null) { - progress_bar_label.setVisibility(View.VISIBLE); - } - PendingIntent pi = result.getParcelableExtra(OpenPgpApi.RESULT_INTENT); try { PgpHandler.this.startIntentSenderForResult(pi.getIntentSender(), @@ -701,8 +693,6 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne // exactly same as decrypt, only we want a different callback data.setAction(OpenPgpApi.ACTION_DECRYPT_VERIFY); - findViewById(R.id.progress_bar).setVisibility(View.VISIBLE); - try { InputStream is = FileUtils.openInputStream(new File(getIntent().getExtras().getString("FILE_PATH"))); -- cgit v1.2.3