summaryrefslogtreecommitdiffstats
path: root/drm/common
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-03-02 12:33:00 -0800
committerGloria Wang <gwang@google.com>2011-03-02 12:33:00 -0800
commit7f89d09c0f4a47119834ba15789260b933123ea5 (patch)
tree69a8676dad50967012b6abe98bdd7e1f859ecce9 /drm/common
parent5f5354e35ab3b2a0cb4cabb6d0aa5a160225ccc8 (diff)
downloadframeworks_av-7f89d09c0f4a47119834ba15789260b933123ea5.zip
frameworks_av-7f89d09c0f4a47119834ba15789260b933123ea5.tar.gz
frameworks_av-7f89d09c0f4a47119834ba15789260b933123ea5.tar.bz2
To support DRM files without file extension
Change-Id: Ie7701048d0dbd51bf358364014a1b41c894b664c
Diffstat (limited to 'drm/common')
-rw-r--r--drm/common/DrmSupportInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/common/DrmSupportInfo.cpp b/drm/common/DrmSupportInfo.cpp
index ffc8953..3e02093 100644
--- a/drm/common/DrmSupportInfo.cpp
+++ b/drm/common/DrmSupportInfo.cpp
@@ -56,7 +56,7 @@ bool DrmSupportInfo::isSupportedFileSuffix(const String8& fileType) const {
for (unsigned int i = 0; i < mFileSuffixVector.size(); i++) {
const String8 item = mFileSuffixVector.itemAt(i);
- if (String8("") != fileType && item.find(fileType) != -1) {
+ if (item.find(fileType) != -1) {
return true;
}
}