mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Removing auto-padding of widgets, as it is now done at framework level
Change-Id: Ia3bc171e297e07eba00c447a794a28f8201dac44
This commit is contained in:
@@ -115,18 +115,6 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAppWidget(int appWidgetId, AppWidgetProviderInfo info) {
|
||||
super.setAppWidget(appWidgetId, info);
|
||||
// Sometimes the AppWidgetManager returns a null AppWidgetProviderInfo object for
|
||||
// a widget, eg. for some widgets in safe mode.
|
||||
if (info != null) {
|
||||
// We add necessary padding to the AppWidgetHostView
|
||||
Launcher.Padding padding = mLauncher.getPaddingForWidget(info.provider);
|
||||
setPadding(padding.left, padding.top, padding.right, padding.bottom);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDescendantFocusability() {
|
||||
return ViewGroup.FOCUS_BLOCK_DESCENDANTS;
|
||||
|
||||
Reference in New Issue
Block a user