summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-05-02 10:38:01 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-02 10:38:01 -0700
commitdfed49a2852e9336e212f6934dcddec7dd743c26 (patch)
tree97801eff7d172b8fc1a23d1f0330d3671cfb5574 /services
parente318c9a5f1819e953a2c78b32bced3c7fc427dbf (diff)
parentd2097ebacf3a3658624cad10669a4d98e8d7d846 (diff)
downloadframeworks_base-dfed49a2852e9336e212f6934dcddec7dd743c26.zip
frameworks_base-dfed49a2852e9336e212f6934dcddec7dd743c26.tar.gz
frameworks_base-dfed49a2852e9336e212f6934dcddec7dd743c26.tar.bz2
Merge "Changing app widget "extras" to "options" and another small API Review issue" into jb-dev
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/AppWidgetService.java8
-rw-r--r--services/java/com/android/server/AppWidgetServiceImpl.java16
2 files changed, 12 insertions, 12 deletions
diff --git a/services/java/com/android/server/AppWidgetService.java b/services/java/com/android/server/AppWidgetService.java
index 7e71b08..38f4554 100644
--- a/services/java/com/android/server/AppWidgetService.java
+++ b/services/java/com/android/server/AppWidgetService.java
@@ -279,13 +279,13 @@ class AppWidgetService extends IAppWidgetService.Stub
}
@Override
- public void updateAppWidgetExtras(int appWidgetId, Bundle extras) {
- getImplForUser().updateAppWidgetExtras(appWidgetId, extras);
+ public void updateAppWidgetOptions(int appWidgetId, Bundle options) {
+ getImplForUser().updateAppWidgetOptions(appWidgetId, options);
}
@Override
- public Bundle getAppWidgetExtras(int appWidgetId) {
- return getImplForUser().getAppWidgetExtras(appWidgetId);
+ public Bundle getAppWidgetOptions(int appWidgetId) {
+ return getImplForUser().getAppWidgetOptions(appWidgetId);
}
static int[] getAppWidgetIds(Provider p) {
diff --git a/services/java/com/android/server/AppWidgetServiceImpl.java b/services/java/com/android/server/AppWidgetServiceImpl.java
index 36f154a..23f2fdd 100644
--- a/services/java/com/android/server/AppWidgetServiceImpl.java
+++ b/services/java/com/android/server/AppWidgetServiceImpl.java
@@ -112,7 +112,7 @@ class AppWidgetServiceImpl {
int appWidgetId;
Provider provider;
RemoteViews views;
- Bundle extras;
+ Bundle options;
Host host;
}
@@ -820,7 +820,7 @@ class AppWidgetServiceImpl {
}
}
- public void updateAppWidgetExtras(int appWidgetId, Bundle extras) {
+ public void updateAppWidgetOptions(int appWidgetId, Bundle options) {
synchronized (mAppWidgetIds) {
ensureStateLoadedLocked();
AppWidgetId id = lookupAppWidgetIdLocked(appWidgetId);
@@ -829,23 +829,23 @@ class AppWidgetServiceImpl {
return;
}
Provider p = id.provider;
- id.extras = extras;
+ id.options = options;
// send the broacast saying that this appWidgetId has been deleted
- Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_EXTRAS_CHANGED);
+ Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_OPTIONS_CHANGED);
intent.setComponent(p.info.provider);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, id.appWidgetId);
- intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_EXTRAS, extras);
+ intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_OPTIONS, options);
mContext.sendBroadcast(intent, mUserId);
}
}
- public Bundle getAppWidgetExtras(int appWidgetId) {
+ public Bundle getAppWidgetOptions(int appWidgetId) {
synchronized (mAppWidgetIds) {
ensureStateLoadedLocked();
AppWidgetId id = lookupAppWidgetIdLocked(appWidgetId);
- if (id != null && id.extras != null) {
- return id.extras;
+ if (id != null && id.options != null) {
+ return id.options;
} else {
return Bundle.EMPTY;
}