Log more data about video capture support.
This commit is contained in:
parent
a2204c8370
commit
695663a5b1
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.mediasend;
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.GestureDetector;
|
import android.view.GestureDetector;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
@ -262,8 +263,10 @@ public class CameraXFragment extends Fragment implements CameraFragment {
|
||||||
));
|
));
|
||||||
displayVideoRecordingTooltipIfNecessary(captureButton);
|
displayVideoRecordingTooltipIfNecessary(captureButton);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.w(TAG, "Video capture is not supported on this device.");
|
Log.w(TAG, "Video capture is not supported on this device.", e);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Log.i(TAG, "Video capture not supported. API: " + Build.VERSION.SDK_INT + ", MFD: " + MemoryFileDescriptor.supported());
|
||||||
}
|
}
|
||||||
|
|
||||||
viewModel.onCameraControlsInitialized();
|
viewModel.onCameraControlsInitialized();
|
||||||
|
|
Loading…
Add table
Reference in a new issue