PR cleanup #1164
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class PublishFragment extends BaseFragment implements
|
||||||
|
|
||||||
private void displayPreviewWithCameraX() {
|
private void displayPreviewWithCameraX() {
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
if (context != null && MainActivity.hasPermission(Manifest.permission.CAMERA, context)) {
|
if (MainActivity.hasPermission(Manifest.permission.CAMERA, context)) {
|
||||||
cameraProviderFuture = ProcessCameraProvider.getInstance(context);
|
cameraProviderFuture = ProcessCameraProvider.getInstance(context);
|
||||||
cameraProviderFuture.addListener(new Runnable() {
|
cameraProviderFuture.addListener(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue