Android: handle density and refresh rate changes in onDisplayChanged()
As it makes more sense that they belong there. Task-number: QTBUG-132716 Change-Id: I1bc44ee046c470e40767b1e8f098241eb9bbafee Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
This commit is contained in:
parent
3efd1996a3
commit
6f79d46e80
@ -179,9 +179,6 @@ public class QtActivityBase extends Activity
|
||||
if ((diff & ActivityInfo.CONFIG_LOCALE) != 0)
|
||||
QtNative.updateLocale();
|
||||
|
||||
if ((diff & ActivityInfo.CONFIG_DENSITY) != 0)
|
||||
QtDisplayManager.updateScreenDensity(this);
|
||||
|
||||
m_prevConfig = new Configuration(newConfig);
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,8 @@ class QtDisplayManager {
|
||||
|
||||
@Override
|
||||
public void onDisplayChanged(int displayId) {
|
||||
updateRefreshRate(m_activity);
|
||||
QtDisplayManager.updateRefreshRate(m_activity);
|
||||
QtDisplayManager.updateScreenDensity(m_activity);
|
||||
QtDisplayManager.handleScreenChanged(displayId);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user