Code example for LinearLayout

Methods: setVisibility

0
  private class SecretGenerator extends AsyncTask<String, Void, Void> {
    private MasterSecret   masterSecret;
 
    @Override 
    protected void onPreExecute() { 
      createLayout.setVisibility(View.GONE);
      progressLayout.setVisibility(View.VISIBLE);
    } 
 
    @Override 
    protected Void doInBackground(String... params) {
      String passphrase = params[0];
      masterSecret      = MasterSecretUtil.generateMasterSecret(PassphraseCreateActivity.this,
                                                                passphrase);
 
      // We do this, but the edit boxes are basically impossible to clean up. 
      MemoryCleaner.clean(passphrase);
 
      MasterSecretUtil.generateAsymmetricMasterSecret(PassphraseCreateActivity.this, masterSecret);
      IdentityKeyUtil.generateIdentityKeys(PassphraseCreateActivity.this, masterSecret);