mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-28 21:26:19 -05:00
Merge pull request #2947 from CatimaLoyalty/fix/2945
Fix list widget opening on previous card sometimes
This commit is contained in:
@@ -69,7 +69,9 @@ class ListWidget : AppWidgetProvider() {
|
||||
if (hasCards) {
|
||||
// If we have cards, create the list
|
||||
views = RemoteViews(context.packageName, R.layout.list_widget)
|
||||
val templateIntent = Intent(context, LoyaltyCardViewActivity::class.java)
|
||||
val templateIntent = Intent(context, LoyaltyCardViewActivity::class.java).apply {
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
|
||||
}
|
||||
val pendingIntent = PendingIntent.getActivity(
|
||||
context,
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user