Commit 078209a9 authored by Romain Hunault's avatar Romain Hunault
Browse files

Merge branch '202-blisslauncher_random_widget_padding' into 'master'

Fix random widget padding

See merge request !73
parents aec23506 483a12bf
Pipeline #180888 passed with stage
in 2 minutes and 42 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