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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user