From 0877b74d42b0e33952fcf5b1640d6accafcc3826 Mon Sep 17 00:00:00 2001 From: Andy Huibers Date: Thu, 26 Feb 2015 16:39:20 -0800 Subject: Allow number of Images in ImageReader to be variable. Goes with ag/644111. Bug: 19534046 Change-Id: I7c54de56cd97798f0c325260d6215e1ad8834348 --- src_pd/com/android/camera/util/GservicesHelper.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src_pd/com/android') diff --git a/src_pd/com/android/camera/util/GservicesHelper.java b/src_pd/com/android/camera/util/GservicesHelper.java index c79b69520..9cddbff04 100644 --- a/src_pd/com/android/camera/util/GservicesHelper.java +++ b/src_pd/com/android/camera/util/GservicesHelper.java @@ -37,6 +37,10 @@ public class GservicesHelper { return -1; } + public static int getMaxAllowedImageReaderCount(ContentResolver contentResolver) { + return 15; + } + public static boolean useCamera2ApiThroughPortabilityLayer(ContentResolver contentResolver) { // Use the camera2 API by default. This only affects PhotoModule on L. return true; -- cgit v1.2.3