mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
rotate the video properly too
This commit is contained in:
@ -170,7 +170,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
||||
|
||||
private void handleShutter() {
|
||||
if (isInPhotoMode) {
|
||||
preview.takePicture(orientation);
|
||||
preview.takePicture();
|
||||
} else {
|
||||
final Resources res = getResources();
|
||||
final boolean isRecording = preview.toggleRecording();
|
||||
@ -342,4 +342,9 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
||||
public void activateShutter() {
|
||||
handleShutter();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCurrentOrientation() {
|
||||
return orientation;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user