Below is Google Translate:
I found that it crashed when I started it on my Pixel 4. In addition, I also found the same error in existing issues. After debugging, it was found that it was caused by an error in acquiring the camera. After checking the source code, I changed the method of obtaining the camera list. Sorry, I don't quite understand what the original writing does. If you think such changes are okay, you can merge this PR.
fix Pixel series crash. Change the method of obtaining the camera list.
我发现,在我的Pixel 4上面启动就会闪退,另外我在现存的issues中也发现了同样的错误。调试后发现是获取摄像头错误导致的。我查阅了源码后,对获取摄像头列表的方法进行了更换。很抱歉的是,我不太明白原始的写法的作用。如果你觉得这样的改动没问题,就可以合并这个PR。
Below is Google Translate: I found that it crashed when I started it on my Pixel 4. In addition, I also found the same error in existing issues. After debugging, it was found that it was caused by an error in acquiring the camera. After checking the source code, I changed the method of obtaining the camera list. Sorry, I don't quite understand what the original writing does. If you think such changes are okay, you can merge this PR.
:)