mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-08 13:21:33 +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;
|
int newIconId = R.mipmap.camera_front;
|
||||||
mPreview.releaseCamera();
|
mPreview.releaseCamera();
|
||||||
if (mPreview.setCamera(mCurrCamera)) {
|
if (mPreview.setCamera(mCurrCamera)) {
|
||||||
if (mCurrCamera == Camera.CameraInfo.CAMERA_FACING_BACK) {
|
if (mCurrCamera == Camera.CameraInfo.CAMERA_FACING_FRONT) {
|
||||||
newIconId = R.mipmap.camera_rear;
|
newIconId = R.mipmap.camera_rear;
|
||||||
}
|
}
|
||||||
mToggleCameraBtn.setImageResource(newIconId);
|
mToggleCameraBtn.setImageResource(newIconId);
|
||||||
|
Loading…
Reference in New Issue
Block a user