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

Commit db87c1cb authored by Longbo Wei's avatar Longbo Wei
Browse files

autoclick: Make panel respond to changes in display size

Video: http://shortn/_BxOvkYX5Rx

Bug: b/429438117
Test: atest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: Ica956d3e70584a9c0399e1df58fd02f7b7b8364b
parent 3d57c36d
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();