diff --git a/app/src/main/java/foundation/e/blisslauncher/core/customviews/RoundedWidgetView.java b/app/src/main/java/foundation/e/blisslauncher/core/customviews/RoundedWidgetView.java index 101be1547f41d321ba33ab3e55ef9a9392586976..b79cee09d9ff8e05aad4c00b97b60e36ae86ccf1 100644 --- a/app/src/main/java/foundation/e/blisslauncher/core/customviews/RoundedWidgetView.java +++ b/app/src/main/java/foundation/e/blisslauncher/core/customviews/RoundedWidgetView.java @@ -1,6 +1,7 @@ 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); diff --git a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java index 8ea1b4ccf6d143c0f24e54c4ce0c250602a958eb..88bba1fd271f6391fb4844fcaa2e7a4a8271dc32 100755 --- a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java @@ -489,7 +489,6 @@ public class LauncherActivity extends AppCompatActivity implements private void addWidgetToContainer( RoundedWidgetView widgetView) { - widgetView.setPadding(0, 0, 0, 0); widgetContainer.addView(widgetView); }