Skip to content

Commit 82ebe6f

Browse files
author
Adam Cohen
committed
Getting rid of keyguard widget flag that isn't used
-> issue 7238875 Change-Id: Ifad890b4061784889f3fc7711a165452cf230fbd
1 parent 4251736 commit 82ebe6f

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

api/current.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4486,9 +4486,8 @@ package android.appwidget {
44864486
field public static final int RESIZE_VERTICAL = 2; // 0x2
44874487
field public static final int WIDGET_CATEGORY_HOME_SCREEN = 1; // 0x1
44884488
field public static final int WIDGET_CATEGORY_KEYGUARD = 2; // 0x2
4489-
field public static final int WIDGET_FEATURES_CLOCK = 1; // 0x1
44904489
field public static final int WIDGET_FEATURES_NONE = 0; // 0x0
4491-
field public static final int WIDGET_FEATURES_STATUS = 2; // 0x2
4490+
field public static final int WIDGET_FEATURES_STATUS = 1; // 0x1
44924491
field public int autoAdvanceViewId;
44934492
field public android.content.ComponentName configure;
44944493
field public int icon;

core/java/android/appwidget/AppWidgetProviderInfo.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,12 @@ public class AppWidgetProviderInfo implements Parcelable {
5858
*/
5959
public static final int WIDGET_FEATURES_NONE = 0;
6060

61-
/**
62-
* Indicates that the widget displays the current time. The host may use this as a hint to not
63-
* display the time in other places.
64-
*/
65-
public static final int WIDGET_FEATURES_CLOCK = 1;
66-
6761
/**
6862
* Indicates that the widget is output only, ie. has nothing clickable. This may be enforced by
6963
* the host. Presently, this flag is used by the keyguard to indicate that it can be placed
7064
* in the first position.
7165
*/
72-
public static final int WIDGET_FEATURES_STATUS = 2;
66+
public static final int WIDGET_FEATURES_STATUS = 1;
7367

7468
/**
7569
* Identity of this AppWidget component. This component should be a {@link
@@ -215,8 +209,7 @@ public class AppWidgetProviderInfo implements Parcelable {
215209

216210
/**
217211
* A field which specifies any special features that this widget supports. See
218-
* {@link #WIDGET_FEATURES_NONE}, {@link #WIDGET_FEATURES_CLOCK},
219-
* {@link #WIDGET_FEATURES_STATUS}.
212+
* {@link #WIDGET_FEATURES_NONE}, {@link #WIDGET_FEATURES_STATUS}.
220213
*
221214
* <p>This field corresponds to the <code>widgetFeatures</code> attribute in
222215
* the AppWidget meta-data file.

core/res/res/values/attrs.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5215,8 +5215,7 @@
52155215
supports. Supports combined values using | operator. -->
52165216
<attr name="widgetFeatures" format="integer">
52175217
<flag name="none" value="0x0" />
5218-
<flag name="clock" value="0x1" />
5219-
<flag name="status" value="0x2" />
5218+
<flag name="status" value="0x1" />
52205219
</attr>
52215220
</declare-styleable>
52225221

0 commit comments

Comments
 (0)