Image flipped AndroidCameraExample Moto g4

I have a problem with the example AndroidCameraExample, run the code in my device (Moto G4, Android 7, 1920 x 1080) works nice but the image shows it flipped, however in other device (Huawei YI, Android 6, 1280 x 720 ) works perfect

Any tips by this problem are highly appreciated!
Thank you!