Adding API AppWidgetHost.getAppWidgetIds() to get active widgets of the host
Bug: 37435178 Test: Added CTS Change-Id: I621247e0887b3931bfb92431d94f97507a303e5c
This commit is contained in:
@@ -7064,6 +7064,7 @@ package android.appwidget {
|
||||
method public static void deleteAllHosts();
|
||||
method public void deleteAppWidgetId(int);
|
||||
method public void deleteHost();
|
||||
method public int[] getAppWidgetIds();
|
||||
method protected android.appwidget.AppWidgetHostView onCreateView(android.content.Context, int, android.appwidget.AppWidgetProviderInfo);
|
||||
method protected void onProviderChanged(int, android.appwidget.AppWidgetProviderInfo);
|
||||
method protected void onProvidersChanged();
|
||||
|
||||
@@ -7528,6 +7528,7 @@ package android.appwidget {
|
||||
method public static void deleteAllHosts();
|
||||
method public void deleteAppWidgetId(int);
|
||||
method public void deleteHost();
|
||||
method public int[] getAppWidgetIds();
|
||||
method protected android.appwidget.AppWidgetHostView onCreateView(android.content.Context, int, android.appwidget.AppWidgetProviderInfo);
|
||||
method protected void onProviderChanged(int, android.appwidget.AppWidgetProviderInfo);
|
||||
method protected void onProvidersChanged();
|
||||
|
||||
@@ -7095,6 +7095,7 @@ package android.appwidget {
|
||||
method public static void deleteAllHosts();
|
||||
method public void deleteAppWidgetId(int);
|
||||
method public void deleteHost();
|
||||
method public int[] getAppWidgetIds();
|
||||
method protected android.appwidget.AppWidgetHostView onCreateView(android.content.Context, int, android.appwidget.AppWidgetProviderInfo);
|
||||
method protected void onProviderChanged(int, android.appwidget.AppWidgetProviderInfo);
|
||||
method protected void onProvidersChanged();
|
||||
|
||||
@@ -276,8 +276,6 @@ public class AppWidgetHost {
|
||||
|
||||
/**
|
||||
* Gets a list of all the appWidgetIds that are bound to the current host
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public int[] getAppWidgetIds() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user