Commit 483a12bf authored by Suphon Thanakornpakapong's avatar Suphon Thanakornpakapong
Browse files

Fix random widget padding

parent 691765cc
Pipeline #179040 passed with stage
in 9 minutes and 6 seconds
package foundation.e.blisslauncher.core.customviews;
import android.appwidget.AppWidgetHostView;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Path;
......@@ -40,6 +41,12 @@ public class RoundedWidgetView extends AppWidgetHostView {
mLongPressHelper = new CheckLongPressHelper(this);
}
@Override
public void setAppWidget(int appWidgetId, AppWidgetProviderInfo info) {
super.setAppWidget(appWidgetId, info);
setPadding(0, 0, 0, 0);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
......
......@@ -489,7 +489,6 @@ public class LauncherActivity extends AppCompatActivity implements
private void addWidgetToContainer(
RoundedWidgetView widgetView) {
widgetView.setPadding(0, 0, 0, 0);
widgetContainer.addView(widgetView);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment