Enabled key import

pull/168/head
M66B 5 years ago
parent 2c51257942
commit 2c36870cc8

@ -227,7 +227,6 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
final Intent importKey = KeyChain.createInstallIntent();
btnImportKey.setEnabled(importKey.resolveActivity(getContext().getPackageManager()) != null);
btnImportKey.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
btnImportKey.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@ -241,7 +240,6 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
} catch (NoSuchAlgorithmException ex) {
tvKeySize.setText(Helper.formatThrowable(ex));
}
tvKeySize.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);

Loading…
Cancel
Save