Fix(quick-setting): improper placement

This was due to an issue that only happens within older android versions.
This commit is contained in:
Mathias-Boulay 2024-12-23 22:05:55 +01:00 committed by Maksim Belov
parent dcbb1e010e
commit 8cc5cca99f

View File

@ -243,8 +243,8 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
@Override
public void onAttachedToWindow() {
// Post to get the correct display dimensions after layout.
LauncherPreferences.computeNotchSize(this);
mControlLayout.post(()->{
LauncherPreferences.computeNotchSize(this);
Tools.getDisplayMetrics(this);
loadControls();
});