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

Commit da5b84c8 authored by Winson Chung's avatar Winson Chung
Browse files

Exposing the API to support widgets in Recents.

Change-Id: I2d53f226dbc328f0dbda7006eac647c6468c6b36
parent 26ebd62b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5309,6 +5309,7 @@ package android.appwidget {
    field public static final int RESIZE_VERTICAL = 2; // 0x2
    field public static final int WIDGET_CATEGORY_HOME_SCREEN = 1; // 0x1
    field public static final int WIDGET_CATEGORY_KEYGUARD = 2; // 0x2
    field public static final int WIDGET_CATEGORY_RECENTS = 4; // 0x4
    field public int autoAdvanceViewId;
    field public android.content.ComponentName configure;
    field public int icon;
+2 −1
Original line number Diff line number Diff line
@@ -181,7 +181,8 @@ public class AppWidgetManager {
     * A bundle extra that hints to the AppWidgetProvider the category of host that owns this
     * this widget. Can have the value {@link
     * AppWidgetProviderInfo#WIDGET_CATEGORY_HOME_SCREEN} or {@link
     * AppWidgetProviderInfo#WIDGET_CATEGORY_KEYGUARD}.
     * AppWidgetProviderInfo#WIDGET_CATEGORY_KEYGUARD} or {@link
     * AppWidgetProviderInfo#WIDGET_CATEGORY_RECENTS}.
     */
    public static final String OPTION_APPWIDGET_HOST_CATEGORY = "appWidgetCategory";

+0 −1
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ public class AppWidgetProviderInfo implements Parcelable {

    /**
     * Indicates that the widget can be displayed within recents.
     * @hide
     */
    public static final int WIDGET_CATEGORY_RECENTS = 4;

+3 −2
Original line number Diff line number Diff line
@@ -5951,11 +5951,12 @@
            <flag name="vertical" value="0x2" />
        </attr>
        <!-- Optional parameter which indicates where this widget can be shown,
             ie. home screen, keyguard or both.
             resized. Supports combined values using | operator. -->
             ie. home screen, keyguard, recents or any combination thereof.
             Supports combined values using | operator. -->
        <attr name="widgetCategory" format="integer">
            <flag name="home_screen" value="0x1" />
            <flag name="keyguard" value="0x2" />
            <flag name="recents" value="0x4" />
        </attr>
    </declare-styleable>

+3 −0
Original line number Diff line number Diff line
@@ -32,5 +32,8 @@

    <!-- Min alpha % that recent items will fade to while being dismissed -->
    <integer name="config_recent_item_min_alpha">0</integer>

    <!-- Transposes the search bar layout in landscape -->
    <bool name="recents_transpose_search_layout_with_orientation">false</bool>
</resources>
Loading