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 Sep 5, 2018
1 parent e10d4de commit a6e3148
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RxCamera/src/main/java/com/vondear/camera/RxCameraView.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,19 @@ public RxCameraView(Context context, AttributeSet attrs, int defStyleAttr) {
final PreviewImpl preview = createPreviewImpl(context);
mCallbacks = new CallbackBridge();


camera1 = new Camera1(mCallbacks, preview);
mImpl = camera1;
// 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) {
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 a6e3148

Please sign in to comment.