From a170a73f7a6c845be81e3a915e19c85242463952 Mon Sep 17 00:00:00 2001 From: Christophe BOUCAUT Date: Wed, 24 Jun 2015 17:09:09 +0200 Subject: [PATCH] Remove a function not used. --- .../geneanet/customcamera/CameraActivity.java | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java b/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java index 2a10db8..a870426 100644 --- a/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java +++ b/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java @@ -2,7 +2,6 @@ package org.geneanet.customcamera; import android.app.Activity; import android.content.Intent; -import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.Resources.NotFoundException; @@ -863,38 +862,6 @@ public class CameraActivity extends Activity { manageDisplayButtons(); } - /** - * Allow to lock the screen or not. - * - * @param lock Do we have to lock or not ? - */ - protected void lockScreen(boolean lock) { - if (lock == false) { - this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); - } else { - int newOrientation = 0; - - switch (getCustomRotation()) { - case 0: - newOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; - break; - case 1: - newOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; - break; - case 2: - newOrientation = ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT; - break; - case 3: - newOrientation = ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE; - break; - default: - break; - } - - this.setRequestedOrientation(newOrientation); - } - } - /** * To perform the rotation. * @return the code of the rotation (0, 1, 2, 3)