Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f25dc8d authored by Bruno Martins's avatar Bruno Martins
Browse files

DeviceUtils: Drop useless cast when calling getSystemService

Change-Id: I914c2802933a111755015c13724cf64d35dac76e
parent 7a3d2e13
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -120,8 +120,7 @@ public class DeviceUtils {
    }

    public static boolean deviceSupportsFlashLight(Context context) {
        CameraManager cameraManager = (CameraManager) context.getSystemService(
                Context.CAMERA_SERVICE);
        CameraManager cameraManager = context.getSystemService(CameraManager.class);
        try {
            String[] ids = cameraManager.getCameraIdList();
            for (String id : ids) {