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

Commit 657bae2b authored by “Longbo's avatar “Longbo Committed by Longbo Wei
Browse files

a11y: Make scrollpanel respond to change in display size

Video: http://shortn/_j5d8ga86tZ

Bug: b/434705189
Test: atest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: If951b0709020e6730338636c9ba86ab2ec5d6049
parent b80f25dd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ public class AutoclickScrollPanel {
    @Retention(RetentionPolicy.SOURCE)
    public @interface ScrollDirection {}

    private final Context mContext;
    private Context mContext;
    private AutoclickLinearLayout mContentView;
    private final WindowManager mWindowManager;
    private final WindowManager.LayoutParams mParams;
@@ -326,6 +326,9 @@ public class AutoclickScrollPanel {
                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();