Our app will be targeting Android Q once it's released. I've updated my Pixel 3 XL to test our existing app and have found an issue with the camera screen. The app has never had an issue here before and only crashes when my phone is running Android Q.
If I go into the settings and deny the camera permission our app asks for it to be granted again. Once the permission is granted the camera screen works fine and doesn't crash until I leave and go back into it. Is this just a bug with Android Q or are they handling camera permissions differently?
I've looked through the documentation and see that there are permission changes but them seem to only affect the app if you're wanting to record the screen of a users device.
The crash it gives is a KotlinNullPointerException when we're building the preview screen after we go back into the record screen. As stated above this works fine in Android P and when the camera permission has been reset.