diff options
author | Sascha Haeberling <haeberling@google.com> | 2015-02-19 11:35:43 -0800 |
---|---|---|
committer | Sascha Haeberling <haeberling@google.com> | 2015-02-20 18:42:15 -0800 |
commit | 8f51086c8177056345de996963515c4bd3415254 (patch) | |
tree | 440fde30c67a1d91c971cc7ea7991946a6124a5a /src/com/android/camera/util | |
parent | e17a39b6bef8264956e48d7dbf7139fbe738dbe2 (diff) | |
download | android_packages_apps_Camera2-8f51086c8177056345de996963515c4bd3415254.tar.gz android_packages_apps_Camera2-8f51086c8177056345de996963515c4bd3415254.tar.bz2 android_packages_apps_Camera2-8f51086c8177056345de996963515c4bd3415254.zip |
Centralize logic for Camera API feature determination.
Bug: 19179276
This captures camera capabilities in a centralized class and allows
them to be overridden by GServices in the field or using adb.
Since this is not it's own class it would be trivial to create another
instance for testing and pass that into CameraActivity or even to change
these values using a UI before the actual Activity is started.
Change-Id: I74262c8467f631c7b5e42b02d269d5f401d4e9e7
Diffstat (limited to 'src/com/android/camera/util')
-rw-r--r-- | src/com/android/camera/util/ApiHelper.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/camera/util/ApiHelper.java b/src/com/android/camera/util/ApiHelper.java index cccda10d6..0ac72f0c0 100644 --- a/src/com/android/camera/util/ApiHelper.java +++ b/src/com/android/camera/util/ApiHelper.java @@ -105,7 +105,6 @@ public class ApiHelper { } public static boolean isLMr1OrHigher() { - // TODO: Add proper version code once we can access it. return Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP; } } |