Anki-Android
Anki-Android copied to clipboard
Display/Size related deprecation in API 30
- WindowManager.getDefaultDisplay()
- Use Context.getDisplay() instead.
- Display
- getSize(point)
- Use WindowManager.getCurrentWindowMetrics() to obtain an instance of WindowMetrics and use WindowMetrics.getBounds() instead.
- getMetrics()
- Use WindowMetrics.getBounds() to get the dimensions of the application window area, and Configuration.densityDpi to get the current density
- getSize(point)