Cache passphrase for edit

This commit is contained in:
Dominik Schürmann 2014-07-03 15:49:46 +02:00
parent 2988ac6e7b
commit b9d2ae938a

View File

@ -127,8 +127,6 @@ public class EditKeyFragment extends LoaderFragment implements
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
cachePassphraseForEdit();
// Inflate a "Done"/"Cancel" custom action bar view
ActionBarHelper.setTwoButtonView(((ActionBarActivity) getActivity()).getSupportActionBar(),
R.string.btn_save, R.drawable.ic_action_save,
@ -177,6 +175,8 @@ public class EditKeyFragment extends LoaderFragment implements
getActivity().finish();
}
cachePassphraseForEdit();
mChangePassphrase.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {