From 9611f2ea6c962c7eb05a2841d06656745f524097 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Mon, 28 Feb 2011 13:39:38 -0800 Subject: Small change to AppWidgetProviderInfo public field name and docs Change-Id: Ia799cfc1824ccee1f7fd041ae8ecaa1a0395c3f6 --- api/current.xml | 2 +- core/java/android/appwidget/AppWidgetProviderInfo.java | 12 +++++++++--- services/java/com/android/server/AppWidgetService.java | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/api/current.xml b/api/current.xml index 6adf8aa2c861..2c9789222b8b 100644 --- a/api/current.xml +++ b/api/current.xml @@ -39947,7 +39947,7 @@ visibility="public" > -This field corresponds to the android:autoAdvanceViewId attribute in + * the AppWidget meta-data file. */ public int autoAdvanceViewId; @@ -146,8 +149,11 @@ public class AppWidgetProviderInfo implements Parcelable { * The rules by which a widget can be resized. See {@link #RESIZE_NONE}, * {@link #RESIZE_NONE}, {@link #RESIZE_HORIZONTAL}, * {@link #RESIZE_VERTICAL}, {@link #RESIZE_BOTH}. + * + *

This field corresponds to the android:resizeMode attribute in + * the AppWidget meta-data file. */ - public int resizableMode; + public int resizeMode; public AppWidgetProviderInfo() { } @@ -170,7 +176,7 @@ public class AppWidgetProviderInfo implements Parcelable { this.icon = in.readInt(); this.previewImage = in.readInt(); this.autoAdvanceViewId = in.readInt(); - this.resizableMode = in.readInt(); + this.resizeMode = in.readInt(); } public void writeToParcel(android.os.Parcel out, int flags) { @@ -194,7 +200,7 @@ public class AppWidgetProviderInfo implements Parcelable { out.writeInt(this.icon); out.writeInt(this.previewImage); out.writeInt(this.autoAdvanceViewId); - out.writeInt(this.resizableMode); + out.writeInt(this.resizeMode); } public int describeContents() { diff --git a/services/java/com/android/server/AppWidgetService.java b/services/java/com/android/server/AppWidgetService.java index afa8d69c3596..f28e2b12ce55 100644 --- a/services/java/com/android/server/AppWidgetService.java +++ b/services/java/com/android/server/AppWidgetService.java @@ -1029,7 +1029,7 @@ class AppWidgetService extends IAppWidgetService.Stub com.android.internal.R.styleable.AppWidgetProviderInfo_previewImage, 0); info.autoAdvanceViewId = sa.getResourceId( com.android.internal.R.styleable.AppWidgetProviderInfo_autoAdvanceViewId, -1); - info.resizableMode = sa.getInt( + info.resizeMode = sa.getInt( com.android.internal.R.styleable.AppWidgetProviderInfo_resizeMode, AppWidgetProviderInfo.RESIZE_NONE); -- cgit v1.2.3-59-g8ed1b