diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-05-04 16:22:42 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-05-04 16:22:42 -0700 |
commit | 8206b1352b28f06b451d7db58879b28bead547c4 (patch) | |
tree | 8d76010808e7dc9bf39a983bde01c1072bcf4958 /samples | |
parent | 9a3035b9125baec16a52243b793cc446f13faaca (diff) | |
download | vendor_cmsdk-8206b1352b28f06b451d7db58879b28bead547c4.zip vendor_cmsdk-8206b1352b28f06b451d7db58879b28bead547c4.tar.gz vendor_cmsdk-8206b1352b28f06b451d7db58879b28bead547c4.tar.bz2 |
CMSDK: Don't cancel pendingintent, update instead.
Change-Id: I557b50fe024feb48c79f71d0ee8882ebaaa80f9f
Diffstat (limited to 'samples')
-rw-r--r-- | samples/customtiles/src/org/cyanogenmod/samples/customtiles/MainActivity.java | 2 | ||||
-rw-r--r-- | samples/customtiles/src/org/cyanogenmod/samples/customtiles/TileReceiver.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/customtiles/src/org/cyanogenmod/samples/customtiles/MainActivity.java b/samples/customtiles/src/org/cyanogenmod/samples/customtiles/MainActivity.java index 95a19ab..dda5c60 100644 --- a/samples/customtiles/src/org/cyanogenmod/samples/customtiles/MainActivity.java +++ b/samples/customtiles/src/org/cyanogenmod/samples/customtiles/MainActivity.java @@ -59,7 +59,7 @@ public class MainActivity extends Activity implements View.OnClickListener { PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, - intent ,PendingIntent.FLAG_CANCEL_CURRENT); + intent , PendingIntent.FLAG_UPDATE_CURRENT); mCustomTile = new CustomTile.Builder(this) .setOnClickIntent(pendingIntent) diff --git a/samples/customtiles/src/org/cyanogenmod/samples/customtiles/TileReceiver.java b/samples/customtiles/src/org/cyanogenmod/samples/customtiles/TileReceiver.java index 1fc2de3..9374b11 100644 --- a/samples/customtiles/src/org/cyanogenmod/samples/customtiles/TileReceiver.java +++ b/samples/customtiles/src/org/cyanogenmod/samples/customtiles/TileReceiver.java @@ -55,7 +55,7 @@ public class TileReceiver extends BroadcastReceiver { PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, - newIntent ,PendingIntent.FLAG_CANCEL_CURRENT); + newIntent , PendingIntent.FLAG_UPDATE_CURRENT); CustomTile customTile = new CustomTile.Builder(context) .setOnClickIntent(pendingIntent) |