Removing auto-padding of widgets, as it is now done at framework level

Change-Id: Ia3bc171e297e07eba00c447a794a28f8201dac44
This commit is contained in:
Adam Cohen committed 2011-09-30 15:06:26 -07:00
1 parent e4a647f879
commit 82ebbd2a2f
3 files changed
+16 -22

No files matched your search

@@ -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;