Skip to content

Commit

Permalink
Fix(quick-setting): improper placement
Browse files Browse the repository at this point in the history
This was due to an issue that only happens within older android versions.
  • Loading branch information
Mathias-Boulay committed Dec 23, 2024
1 parent d8098c9 commit 736ee68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ private void loadControls() {
@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();
});
Expand Down

0 comments on commit 736ee68

Please sign in to comment.