qt6-bb10/src/android
Assam Boudjelthia c0e0b56055 Android: improve screen size and physical size calculation
Use new api calls for calculating pixel size and physical size
of multi-display setups after some existing apis have been deprecated
in Android API 30 and 31. Also, do the physical size calculation outside
of the supported modes loop.

As for the physical size, this patch still uses xdpi/ydpi for the
calculation instead of densityDpi as suggested in [1] because from
testing few scenarios, the results returned from xdpi/ydpi are more
consistent with physical device specs.

[1] https://issuetracker.google.com/issues/194120500

Pick-to: 6.6 6.5
Task-number: QTBUG-112742
Change-Id: I0c8ef5185c8b6463830b528374954c324a32d657
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
2023-06-10 11:12:39 +03:00
..
jar Android: improve screen size and physical size calculation 2023-06-10 11:12:39 +03:00
java src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
templates Android: allow using string based versions in compileSdkVersion 2023-04-05 12:38:15 +01:00
CMakeLists.txt src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00