aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain
diff options
context:
space:
mode:
authorAdithya Abraham Philip <adithyaphilip@gmail.com>2015-03-28 19:47:54 +0530
committerAdithya Abraham Philip <adithyaphilip@gmail.com>2015-03-28 19:47:54 +0530
commit1af522cf353dd344cf89b1e68a549aa706d80c43 (patch)
treec8e73dfea9d2330e846892c3bcad00cfdba48e5d /OpenKeychain
parentd6368db5641f21c817f736913de75c1fc85f0fda (diff)
downloadopen-keychain-1af522cf353dd344cf89b1e68a549aa706d80c43.tar.gz
open-keychain-1af522cf353dd344cf89b1e68a549aa706d80c43.tar.bz2
open-keychain-1af522cf353dd344cf89b1e68a549aa706d80c43.zip
changed style to WARN, corrected error message
Diffstat (limited to 'OpenKeychain')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ImportKeyResult.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ImportKeyResult.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ImportKeyResult.java
index af9f67114..1438ad698 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ImportKeyResult.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ImportKeyResult.java
@@ -162,7 +162,7 @@ public class ImportKeyResult extends OperationResult {
if (isOkWithErrors()) {
// definitely switch to warning-style message in this case!
duration = 0;
- style = Style.ERROR;
+ style = Style.WARN;
str += " " + activity.getResources().getQuantityString(
R.plurals.import_keys_with_errors, mBadKeys, mBadKeys);
}
@@ -175,7 +175,10 @@ public class ImportKeyResult extends OperationResult {
? R.string.import_error_nothing_cancelled
: R.string.import_error_nothing);
} else {
- str = activity.getResources().getQuantityString(R.plurals.import_error, mBadKeys);
+ str = activity.getResources().getQuantityString(
+ R.plurals.import_error,
+ mBadKeys,
+ mBadKeys);
}
}