Merge "Fix widget update issue"
This commit is contained in:
@@ -517,8 +517,8 @@ public class KeyguardAppWidgetPickActivity extends Activity
|
|||||||
// Found in KeyguardHostView.java
|
// Found in KeyguardHostView.java
|
||||||
final int KEYGUARD_HOST_ID = 0x4B455947;
|
final int KEYGUARD_HOST_ID = 0x4B455947;
|
||||||
int userId = ActivityManager.getCurrentUser();
|
int userId = ActivityManager.getCurrentUser();
|
||||||
mAppWidgetId = AppWidgetHost.allocateAppWidgetIdForSystem(KEYGUARD_HOST_ID,
|
mAppWidgetId = AppWidgetHost.allocateAppWidgetIdForPackage(KEYGUARD_HOST_ID,
|
||||||
userId);
|
userId, "com.android.keyguard");
|
||||||
}
|
}
|
||||||
mAppWidgetManager.bindAppWidgetId(
|
mAppWidgetManager.bindAppWidgetId(
|
||||||
mAppWidgetId, intent.getComponent(), mExtraConfigureOptions);
|
mAppWidgetId, intent.getComponent(), mExtraConfigureOptions);
|
||||||
|
Reference in New Issue
Block a user