Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ public class CameraController implements Camera.PictureCallback, Camera.AutoFocu
public static boolean isPixel = Build.MANUFACTURER.toLowerCase().replace(" ", "").contains("google")
&& Build.MODEL.toLowerCase().replace(" ", "").contains("pixel");

public static boolean isXiaomiRedmiNote4 = Build.MODEL.toLowerCase(Locale.US).replace(" ", "").contains("redminote4");

public static boolean motozChangeResolution = false;

// Android camera parameters constants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public void setupCameraParameters()
// exlude also LG G3 and some others modifications to prevent camera error in takePicture call.
// FixMe: probably Nexus should not be excluded if using Camera2 interface
if (sceneModes != null && CameraController.isModeAvailable(sceneModes, CameraParameters.SCENE_MODE_NIGHT)
&& (!CameraController.isNexus && !CameraController.isG3) && !usingSuperMode)
&& (!CameraController.isNexus && !CameraController.isG3 && !CameraController.isXiaomiRedmiNote4) && !usingSuperMode)
{
CameraController.setCameraSceneMode(CameraParameters.SCENE_MODE_NIGHT);
ApplicationScreen.instance.setSceneModePref(CameraParameters.SCENE_MODE_NIGHT);
Expand Down