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

Commit f824be00 authored by kaiyiz's avatar kaiyiz Committed by Steve Kondik
Browse files

AppWidget: Make widget update quickly

Can't display the Power control widget after power on DUT for
3 mins. Because of the  update intent is received after power
on DUT for 3 mins.

Set the intent to foregound

CRs-Fixed: 707605

Change-Id: I5418c84a7dc79466be7a30bb3672ea41976badb0
parent b806ac52
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1390,6 +1390,7 @@ class AppWidgetServiceImpl {
        if (appWidgetIds != null && appWidgetIds.length > 0) {
            Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
            intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds);
            intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
            intent.setComponent(p.info.provider);
            mContext.sendBroadcastAsUser(intent, new UserHandle(mUserId));
        }