Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edfdb67e authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Adding API AppWidgetHost.getAppWidgetIds() to get active widgets of the host

Bug: 37435178
Test: Added CTS
Change-Id: I621247e0887b3931bfb92431d94f97507a303e5c
parent 5838563e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();
+1 −0
Original line number Diff line number Diff line
@@ -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();
+1 −0
Original line number Diff line number Diff line
@@ -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();
+0 −2
Original line number Diff line number Diff line
@@ -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 {