Skip to content

Commit e6d5545

Browse files
committed
Fixing construction of handler in AppWidgetHost
Change-Id: I1253f8e2ea1621208ad7d65e5c860a1df075a44a
1 parent 4215017 commit e6d5545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/appwidget/AppWidgetHost.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void handleMessage(Message msg) {
117117
private OnClickHandler mOnClickHandler;
118118

119119
public AppWidgetHost(Context context, int hostId) {
120-
this(context, hostId, null, Looper.getMainLooper());
120+
this(context, hostId, null, context.getMainLooper());
121121
}
122122

123123
/**

0 commit comments

Comments
 (0)