mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -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
|
@Override
|
||||||
public void onAttachedToWindow() {
|
public void onAttachedToWindow() {
|
||||||
// Post to get the correct display dimensions after layout.
|
// Post to get the correct display dimensions after layout.
|
||||||
|
LauncherPreferences.computeNotchSize(this);
|
||||||
mControlLayout.post(()->{
|
mControlLayout.post(()->{
|
||||||
LauncherPreferences.computeNotchSize(this);
|
|
||||||
Tools.getDisplayMetrics(this);
|
Tools.getDisplayMetrics(this);
|
||||||
loadControls();
|
loadControls();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user