Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b7f9eb8 authored by Longbo Wei's avatar Longbo Wei Committed by Android (Google) Code Review
Browse files

Merge "autoclick: Make panel respond to changes in display size" into main

parents eedb4e8e db87c1cb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public class AutoclickTypePanel {
        void onHoverChange(boolean hovered);
    }

    private final Context mContext;
    private Context mContext;

    private AutoclickTypeLinearLayout mContentView;

@@ -456,6 +456,9 @@ public class AutoclickTypePanel {
                mWindowManager.removeView(mContentView);
            }

            // Update mContext with the new configuration.
            mContext = mContext.createConfigurationContext(newConfig);

            // Always re-inflate the views and resources to adopt the new configuration.
            // This is important even if the panel is hidden.
            inflateViewAndResources();