aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-10-23 16:17:43 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-10-23 16:17:43 +0200
commiteefb55e93444dac53595d7e6b1852d5a8c58c336 (patch)
tree50b01a75499c1a3b5fddf90054091a9a1a92cf2b /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java
parent957bbd8139d5b803196c796f851caebc25df19d5 (diff)
downloadopen-keychain-eefb55e93444dac53595d7e6b1852d5a8c58c336.tar.gz
open-keychain-eefb55e93444dac53595d7e6b1852d5a8c58c336.tar.bz2
open-keychain-eefb55e93444dac53595d7e6b1852d5a8c58c336.zip
decryptlist: use generic file icon for application/octet-stream
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java
index f56f92f90..22ef52f6d 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/DecryptListFragment.java
@@ -400,6 +400,10 @@ public class DecryptListFragment
if (ClipDescription.compareMimeTypes(type, "text/plain")) {
// noinspection deprecation, this should be called from Context, but not available in minSdk
icon = getResources().getDrawable(R.drawable.ic_chat_black_24dp);
+ } else if (ClipDescription.compareMimeTypes(type, "application/octet-stream")) {
+ // icons for this are just confusing
+ // noinspection deprecation, this should be called from Context, but not available in minSdk
+ icon = getResources().getDrawable(R.drawable.ic_doc_generic_am);
} else if (ClipDescription.compareMimeTypes(type, Constants.MIME_TYPE_KEYS)) {
// noinspection deprecation, this should be called from Context, but not available in minSdk
icon = getResources().getDrawable(R.drawable.ic_key_plus_grey600_24dp);