Tried to access UI constants from a non-visual Context

https://stackoverflow.com/questions/67451796/tried-to-access-ui-constants-from-a-non-visual-context
2022-06-17 11:27:08.294 16577-16577/com.screencastomatic.app.chromebook E/ViewConfiguration: Tried to access UI constants from a non-visual Context:com.screencastomatic.app.recording.chromeos.ChromeosRecordingService@d173c1dUI constants, such as display metrics or window metrics, must be accessed from Activity or other visual Context. Use an Activity or a Context created with Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen
java.lang.IllegalArgumentException: Tried to access UI constants from a non-visual Context:com.screencastomatic.app.recording.chromeos.ChromeosRecordingService@d173c1d