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

Change-Id: Ia3bc171e297e07eba00c447a794a28f8201dac44
This commit is contained in:
Adam Cohen
2011-09-30 15:05:40 -07:00
parent e4a647f879
commit 82ebbd2a2f
3 changed files with 16 additions and 22 deletions

View File

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