Skip to content

Commit

Permalink
Camera1 is now used by default until performance of Camera2 will be c…
Browse files Browse the repository at this point in the history
…omparable.
  • Loading branch information
dmitry-zaitsev committed May 18, 2017
1 parent 37d2b6f commit d8fad94
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -17,7 +17,7 @@
import io.fotoapparat.view.CameraRenderer;
import io.fotoapparat.view.CameraView;

import static io.fotoapparat.hardware.provider.CameraProviders.defaultProvider;
import static io.fotoapparat.hardware.provider.CameraProviders.v1;
import static io.fotoapparat.parameter.selector.FocusModeSelectors.autoFocus;
import static io.fotoapparat.parameter.selector.FocusModeSelectors.continuousFocus;
import static io.fotoapparat.parameter.selector.FocusModeSelectors.fixed;
Expand All @@ -33,7 +33,7 @@
public class FotoapparatBuilder {

Context context;
CameraProvider cameraProvider;
CameraProvider cameraProvider = v1();
CameraRenderer renderer;

SelectorFunction<LensPosition> lensPositionSelector = firstAvailable(
Expand All @@ -56,8 +56,6 @@ public class FotoapparatBuilder {

FotoapparatBuilder(@NonNull Context context) {
this.context = context;

cameraProvider = defaultProvider(context);
}

/**
Expand Down

0 comments on commit d8fad94

Please sign in to comment.