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

Commit 881485a7 authored by Joe Onorato's avatar Joe Onorato
Browse files

Using PendingIntent.FLAG_CANCEL_CURRENT makes it so there can only be one of the widget at a time.

Bug: 3313989
Change-Id: Ida849732b7ed81879bdb3f268abf2deb57c7c8eb
parent 2dae7f30
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -41,8 +41,7 @@ public class AnalogAppWidgetProvider extends BroadcastReceiver {

            views.setOnClickPendingIntent(R.id.analog_appwidget,
                    PendingIntent.getActivity(context, 0,
                        new Intent(context, AlarmClock.class),
                        PendingIntent.FLAG_CANCEL_CURRENT));
                        new Intent(context, AlarmClock.class), 0));

            int[] appWidgetIds = intent.getIntArrayExtra(
                    AppWidgetManager.EXTRA_APPWIDGET_IDS);