More fixes for KeychainIntentServiceHandler
This commit is contained in:
@@ -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
|
// Message is received after importing is done in ApgService
|
||||||
KeychainIntentServiceHandler saveHandler = new KeychainIntentServiceHandler(this,
|
KeychainIntentServiceHandler saveHandler = new KeychainIntentServiceHandler(
|
||||||
getString(R.string.progress_importing), ProgressDialog.STYLE_HORIZONTAL) {
|
this,
|
||||||
|
getString(R.string.progress_importing),
|
||||||
|
ProgressDialog.STYLE_HORIZONTAL) {
|
||||||
public void handleMessage(Message message) {
|
public void handleMessage(Message message) {
|
||||||
// handle messages by standard KeychainIntentServiceHandler first
|
// handle messages by standard KeychainIntentServiceHandler first
|
||||||
super.handleMessage(message);
|
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) {
|
if (mListFragment.getKeyBytes() != null || mListFragment.getDataUri() != null) {
|
||||||
Log.d(Constants.TAG, "importKeys started");
|
Log.d(Constants.TAG, "importKeys started");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user