More fixes for KeychainIntentServiceHandler

This commit is contained in:
Dominik Schürmann 2014-03-10 22:46:30 +01:00
parent d339029ab9
commit 8fa62161df

View File

@ -360,9 +360,15 @@ public class ImportKeysActivity extends DrawerActivity implements ActionBar.OnNa
// }
/**
* Import keys with mImportData
*/
public void importKeys() {
// Message is received after importing is done in ApgService
KeychainIntentServiceHandler saveHandler = new KeychainIntentServiceHandler(this,
getString(R.string.progress_importing), ProgressDialog.STYLE_HORIZONTAL) {
KeychainIntentServiceHandler saveHandler = new KeychainIntentServiceHandler(
this,
getString(R.string.progress_importing),
ProgressDialog.STYLE_HORIZONTAL) {
public void handleMessage(Message message) {
// handle messages by standard KeychainIntentServiceHandler first
super.handleMessage(message);
@ -401,10 +407,6 @@ public class ImportKeysActivity extends DrawerActivity implements ActionBar.OnNa
}
};
/**
* Import keys with mImportData
*/
public void importKeys() {
if (mListFragment.getKeyBytes() != null || mListFragment.getDataUri() != null) {
Log.d(Constants.TAG, "importKeys started");