Skip to content

Commit

Permalink
Fix reversed portrait
Browse files Browse the repository at this point in the history
Fix preview in reversed portrait mode on tablets.

Change-Id: I89bff8fc5d4f72026bcb1dbe8ba3e8e0713512bf
  • Loading branch information
yaraki committed Apr 11, 2017
1 parent e8ae1ec commit c9394ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ void configureTransform() {
0.f, height, // bottom right
}, 0,
4);
} else if (mDisplayOrientation == 180) {
matrix.postRotate(180, getWidth() / 2, getHeight() / 2);
}
mTextureView.setTransform(matrix);
}
Expand Down

0 comments on commit c9394ca

Please sign in to comment.