Skip to content

Commit

Permalink
update RxCamere
Browse files Browse the repository at this point in the history
  • Loading branch information
Vondear authored and Vondear committed Aug 31, 2018
1 parent bf1b041 commit 34d4f96
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RxCamera/src/main/java/com/vondear/camera/RxCameraView.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@ public RxCameraView(Context context, AttributeSet attrs, int defStyleAttr) {
mCallbacks = new CallbackBridge();

// TODO: 2018/7/3
//if (Build.VERSION.SDK_INT < 21) {
if (Build.VERSION.SDK_INT < 21) {
camera1 = new Camera1(mCallbacks, preview);
mImpl = camera1;
/* } else if (Build.VERSION.SDK_INT < 23) {
} else if (Build.VERSION.SDK_INT < 23) {
mImpl = new Camera2(mCallbacks, preview, context);
} else {
mImpl = new Camera2Api23(mCallbacks, preview, context);
}*/
// camera1 = new Camera1(mCallbacks, preview);
}
// TODO: 2018/7/3

// Attributes
Expand Down

0 comments on commit 34d4f96

Please sign in to comment.