aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2016-07-01 22:15:08 +0200
committerMichael W <baddaemon87@gmail.com>2016-07-01 22:15:08 +0200
commitebddaa95550967594704b803d45aadf2c38afc88 (patch)
tree3c65ec69d96748097ab1bb2578db2b62f9c8085d
parent377e62962858622246b2250da8b787e7cf36dccb (diff)
downloadandroid_packages_apps_CMFileManager-ebddaa95550967594704b803d45aadf2c38afc88.tar.gz
android_packages_apps_CMFileManager-ebddaa95550967594704b803d45aadf2c38afc88.tar.bz2
android_packages_apps_CMFileManager-ebddaa95550967594704b803d45aadf2c38afc88.zip
CMFM: Little cleanup
mimeType can't be null here so just remove those checks and make the code more readable Change-Id: Ic1f6fde2c102912dd8fc7e783d86c2936c43316f
-rwxr-xr-xsrc/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java b/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
index 9f99c7ce..67041bb8 100755
--- a/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
+++ b/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
@@ -208,14 +208,10 @@ public final class IntentsActionPolicy extends ActionsPolicy {
// Check if we can use a unique mime/type
String mimeType = MimeTypeHelper.getMimeType(ctx, fso);
- if (mimeType == null) {
- sameMimeType = false;
- }
- if (sameMimeType &&
- (mimeType != null && lastMimeType != null &&
- mimeType.compareTo(lastMimeType) != 0)) {
+ if (lastMimeType != null && !mimeType.equals(lastMimeType)) {
sameMimeType = false;
}
+
lastMimeType = mimeType;
// Add the uri