CMSDK: Don't cancel pendingintent, update instead.
Change-Id: I557b50fe024feb48c79f71d0ee8882ebaaa80f9f
This commit is contained in:
parent
9a3035b912
commit
8206b1352b
|
@ -59,7 +59,7 @@ public class MainActivity extends Activity implements View.OnClickListener {
|
||||||
|
|
||||||
PendingIntent pendingIntent =
|
PendingIntent pendingIntent =
|
||||||
PendingIntent.getBroadcast(this, 0,
|
PendingIntent.getBroadcast(this, 0,
|
||||||
intent ,PendingIntent.FLAG_CANCEL_CURRENT);
|
intent , PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
|
|
||||||
mCustomTile = new CustomTile.Builder(this)
|
mCustomTile = new CustomTile.Builder(this)
|
||||||
.setOnClickIntent(pendingIntent)
|
.setOnClickIntent(pendingIntent)
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class TileReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
PendingIntent pendingIntent =
|
PendingIntent pendingIntent =
|
||||||
PendingIntent.getBroadcast(context, 0,
|
PendingIntent.getBroadcast(context, 0,
|
||||||
newIntent ,PendingIntent.FLAG_CANCEL_CURRENT);
|
newIntent , PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
|
|
||||||
CustomTile customTile = new CustomTile.Builder(context)
|
CustomTile customTile = new CustomTile.Builder(context)
|
||||||
.setOnClickIntent(pendingIntent)
|
.setOnClickIntent(pendingIntent)
|
||||||
|
|
Loading…
Reference in New Issue