progress bar while key creation - added plurals based on no.of keys while key creation

This commit is contained in:
grait
2014-03-09 17:45:58 +05:30
parent e471560e25
commit 4874ea567a
2 changed files with 8 additions and 2 deletions

View File

@@ -598,7 +598,8 @@ public class KeychainIntentService extends IntentService implements ProgressDial
/* Operation */
int keysTotal = 2;
int keysCreated =0;
this.setProgress(keysCreated, keysTotal);
setProgress(getApplicationContext().getResources().getQuantityString(R.plurals.progress_generating,keysTotal),
keysCreated, keysTotal);
PgpKeyOperation keyOperations = new PgpKeyOperation(this, this);
PGPSecretKey masterKey = keyOperations.createKey(Id.choice.algorithm.rsa,