decryptlist: use generic file icon for application/octet-stream
This commit is contained in:
1 parent
957bbd8139
commit
eefb55e934
1 file changed
+4
@@ -400,6 +400,10 @@ public class DecryptListFragment
|
|||||||
if (ClipDescription.compareMimeTypes(type, "text/plain")) {
|
if (ClipDescription.compareMimeTypes(type, "text/plain")) {
|
||||||
// noinspection deprecation, this should be called from Context, but not available in minSdk
|
// noinspection deprecation, this should be called from Context, but not available in minSdk
|
||||||
icon = getResources().getDrawable(R.drawable.ic_chat_black_24dp);
|
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)) {
|
} else if (ClipDescription.compareMimeTypes(type, Constants.MIME_TYPE_KEYS)) {
|
||||||
// noinspection deprecation, this should be called from Context, but not available in minSdk
|
// noinspection deprecation, this should be called from Context, but not available in minSdk
|
||||||
icon = getResources().getDrawable(R.drawable.ic_key_plus_grey600_24dp);
|
icon = getResources().getDrawable(R.drawable.ic_key_plus_grey600_24dp);
|
||||||
|
|||||||
Reference in new issue
Block a user