mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 06:15:25 +00:00
Remove useless null check
The method CameraManager.getCameraIdList() is annotated with @NonNull. This fixes a warning reported by Android Studio.
This commit is contained in:
@@ -140,7 +140,7 @@ public final class LogUtils {
|
|||||||
CameraManager cameraManager = ServiceManager.getCameraManager();
|
CameraManager cameraManager = ServiceManager.getCameraManager();
|
||||||
try {
|
try {
|
||||||
String[] cameraIds = cameraManager.getCameraIdList();
|
String[] cameraIds = cameraManager.getCameraIdList();
|
||||||
if (cameraIds == null || cameraIds.length == 0) {
|
if (cameraIds.length == 0) {
|
||||||
builder.append("\n (none)");
|
builder.append("\n (none)");
|
||||||
} else {
|
} else {
|
||||||
for (String id : cameraIds) {
|
for (String id : cameraIds) {
|
||||||
|
Reference in New Issue
Block a user