mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -04:00
Fix(quick-setting): improper placement
This was due to an issue that only happens within older android versions.
This commit is contained in:
parent
dcbb1e010e
commit
8cc5cca99f
@ -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();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user