diff options
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 43103080a..611cc79c5 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -1012,18 +1012,6 @@ public class PhotoModule int xOffset = (originalWidth - newWidth)/2; int yOffset = (originalHeight - newHeight)/2; - // For some reason L needs this to work. - // This code is only run on the Nexus 5. - // TODO: Determine why this is needed. - if (Build.VERSION.SDK_INT >= 21 || Build.VERSION.CODENAME.equals("L")) { - Log.v(TAG,"xOffset = " + xOffset); - Log.v(TAG,"yOffset = " + yOffset); - xOffset *= 2; - yOffset = 0; - Log.v(TAG,"new xOffset = " + xOffset); - Log.v(TAG,"new yOffset = " + yOffset); - } - if (xOffset < 0 || yOffset < 0) { return dataBundle; } |