9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-05-02 00:07:24 +08:00

Remove a function not used.

This commit is contained in:
Christophe BOUCAUT
2015-06-24 17:09:09 +02:00
parent 7a11ed6df4
commit a170a73f7a
@@ -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)