mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-11 17:47:40 -04:00
show the proper icon at camera facing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user