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

Commit a75f0395 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Preventing padding from getting reset when the widget updates" into...

Merge "Preventing padding from getting reset when the widget updates" into ub-launcher3-edmonton-polish
parents 2eb47089 4cbbaedb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -162,7 +162,6 @@ public class QsbContainerView extends FrameLayout {
                        .getAppWidgetOptions(widgetId), opts)) {
                    mQsb.updateAppWidgetOptions(opts);
                }
                mQsb.setPadding(0, 0, 0, 0);
                mQsbWidgetHost.startListening();
                return mQsb;
            }
+5 −0
Original line number Diff line number Diff line
@@ -52,6 +52,11 @@ public class QsbWidgetHostView extends AppWidgetHostView {
        return mPreviousOrientation != orientation;
    }

    @Override
    public void setPadding(int left, int top, int right, int bottom) {
        // Prevent the base class from applying the default widget padding.
        super.setPadding(0, 0, 0, 0);
    }

    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {