diff options
| author | Michael W <baddaemon87@gmail.com> | 2016-07-01 22:15:08 +0200 |
|---|---|---|
| committer | Michael W <baddaemon87@gmail.com> | 2016-07-01 22:15:08 +0200 |
| commit | ebddaa95550967594704b803d45aadf2c38afc88 (patch) | |
| tree | 3c65ec69d96748097ab1bb2578db2b62f9c8085d | |
| parent | 377e62962858622246b2250da8b787e7cf36dccb (diff) | |
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-x | src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java | 8 |
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 9f99c7c..67041bb 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 |
