camera case fail for testSceneModes

add equals judgement for cts case: android.hardware.camera2.cts.CaptureRequestTest -m testSceneModes
scene-mode (auto) is not single string in some platform, the source is from getCameraCharacteristics
 which contains multiple characters. so previous code == is not correct.

Test: make
Test: run android.hardware.camera2.cts.CaptureRequestTest -m testSceneModes

Change-Id: Ie5ffeeebd0d0c237c80768a4a8217bc04e52a173
This commit is contained in:
wei zheng dong
2017-02-06 10:07:16 +08:00
committed by weizd
parent 6678d34133
commit 5f391188dc

View File

@@ -646,7 +646,7 @@ public class LegacyMetadataMapper {
// Special case where the only scene mode listed is AUTO => no scene mode
if (sceneModes != null && sceneModes.size() == 1 &&
sceneModes.get(0) == Parameters.SCENE_MODE_AUTO) {
sceneModes.get(0).equals(Parameters.SCENE_MODE_AUTO)) {
supportedSceneModes = null;
}