context does not need null check
This commit is contained in:
parent
40b6591bb0
commit
5879cbd3db
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class PublishFragment extends BaseFragment implements
|
|||
|
||||
private void displayPreviewWithCameraX() {
|
||||
Context context = getContext();
|
||||
if (context != null && MainActivity.hasPermission(Manifest.permission.CAMERA, context)) {
|
||||
if (MainActivity.hasPermission(Manifest.permission.CAMERA, context)) {
|
||||
cameraProviderFuture = ProcessCameraProvider.getInstance(context);
|
||||
cameraProviderFuture.addListener(new Runnable() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue