Merge "Preventing padding from getting reset when the widget updates" into ub-launcher3-edmonton-polish

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2018-08-22 21:41:33 +00:00
commit a75f0395ee
2 files changed
+5 -1

No files matched your search

@@ -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;
}
@@ -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) {