summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/values/config.xml2
-rw-r--r--src/com/android/camera/WideAnglePanoramaModule.java8
2 files changed, 2 insertions, 8 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index a02c6b7..422fb21 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -22,7 +22,7 @@
<!-- This value may be tweaked to save memory on low RAM devices. The value
is the percentage of camera preview height/width to scale to. -->
- <integer name="panorama_frame_size_reduction">90</integer>
+ <integer name="panorama_frame_size_reduction">100</integer>
<!-- This value may be changed to true to enable the warped pano preview overlayed on top
of the fullscreen pano preview. -->
diff --git a/src/com/android/camera/WideAnglePanoramaModule.java b/src/com/android/camera/WideAnglePanoramaModule.java
index c745248..be68e20 100644
--- a/src/com/android/camera/WideAnglePanoramaModule.java
+++ b/src/com/android/camera/WideAnglePanoramaModule.java
@@ -16,7 +16,6 @@
package com.android.camera;
-import android.app.ActivityManager;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
@@ -915,12 +914,7 @@ public class WideAnglePanoramaModule
return;
}
- int perct = 100;
- final ActivityManager am = (ActivityManager)
- mActivity.getSystemService(Context.ACTIVITY_SERVICE);
- if (am.isLowRamDevice()) {
- perct = mActivity.getResources().getInteger(R.integer.panorama_frame_size_reduction);
- }
+ int perct = mActivity.getResources().getInteger(R.integer.panorama_frame_size_reduction);
int width = (mCameraPreviewWidth * perct) / 100;
int height = (mCameraPreviewHeight * perct) / 100;