mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-07 21:01:21 +01:00
show the proper icon at camera facing
This commit is contained in:
parent
3a04b7ab7e
commit
5a87bed1bb
@ -214,7 +214,7 @@ public class MainActivity extends SimpleActivity
|
||||
int newIconId = R.mipmap.camera_front;
|
||||
mPreview.releaseCamera();
|
||||
if (mPreview.setCamera(mCurrCamera)) {
|
||||
if (mCurrCamera == Camera.CameraInfo.CAMERA_FACING_BACK) {
|
||||
if (mCurrCamera == Camera.CameraInfo.CAMERA_FACING_FRONT) {
|
||||
newIconId = R.mipmap.camera_rear;
|
||||
}
|
||||
mToggleCameraBtn.setImageResource(newIconId);
|
||||
|
Loading…
Reference in New Issue
Block a user