Unifying widget cell requirement computations

Change-Id: I5b37ebdab5b3defe7d05926882a6587d4c9f1081
This commit is contained in:
Adam Cohen
2011-09-01 13:48:05 -07:00
parent 5037a0b02a
commit f814aa0f33
3 changed files with 28 additions and 16 deletions

View File

@@ -119,7 +119,7 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView {
public void setAppWidget(int appWidgetId, AppWidgetProviderInfo info) {
super.setAppWidget(appWidgetId, info);
// We add necessary padding to the AppWidgetHostView
Launcher.Padding padding = mLauncher.getPaddingForWidget(info);
Launcher.Padding padding = mLauncher.getPaddingForWidget(info.provider);
setPadding(padding.left, padding.top, padding.right, padding.bottom);
}