SnapdragonCamera: Remove Video quality from getDependentKeys
Remove Video quality from getDependentKeys method.
Change-Id: I43b47f980c1a969f3b17d6dbb606a20d0423e612
diff --git a/src/com/android/camera/SettingsManager.java b/src/com/android/camera/SettingsManager.java
index a8ac6c1..f80ed20 100755
--- a/src/com/android/camera/SettingsManager.java
+++ b/src/com/android/camera/SettingsManager.java
@@ -2215,18 +2215,13 @@
public List<String> getDependentKeys(String key) {
List<String> list = null;
- if (key.equals(KEY_VIDEO_QUALITY)) {
+ String value = getValue(key);
+ JSONObject dependencies = getDependencyList(key, value);
+ if (dependencies != null) {
list = new ArrayList<>();
- list.add(KEY_VIDEO_HIGH_FRAME_RATE);
- } else {
- String value = getValue(key);
- JSONObject dependencies = getDependencyList(key, value);
- if (dependencies != null) {
- list = new ArrayList<>();
- Iterator<String> it = dependencies.keys();
- while (it.hasNext()) {
- list.add(it.next());
- }
+ Iterator<String> it = dependencies.keys();
+ while (it.hasNext()) {
+ list.add(it.next());
}
}
return list;