aboutsummaryrefslogtreecommitdiffstats
path: root/sdk
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-05-04 13:54:27 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-04 22:31:41 -0700
commit10f165d5d0618cce814324a282f00a8e4a5767dd (patch)
tree98325c793f8594d93874ea9f1817c28a322d15f6 /sdk
parent8770189b8d4b3d4b94c2a1a571681edd71a3a10c (diff)
downloadvendor_cmsdk-10f165d5d0618cce814324a282f00a8e4a5767dd.zip
vendor_cmsdk-10f165d5d0618cce814324a282f00a8e4a5767dd.tar.gz
vendor_cmsdk-10f165d5d0618cce814324a282f00a8e4a5767dd.tar.bz2
cmsdk: add persisted key value for status bar tiles
The persisted one simply contains the user, the publishing package, and the tile tag - items which can be persisted across reboots to restore the tile's properties on boot properly. Ticket: CYNGNOS-2530 Change-Id: If770557482e81ab0dd0d16c3ac8be0b2b51e653a Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'sdk')
-rw-r--r--sdk/src/java/cyanogenmod/app/StatusBarPanelCustomTile.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdk/src/java/cyanogenmod/app/StatusBarPanelCustomTile.java b/sdk/src/java/cyanogenmod/app/StatusBarPanelCustomTile.java
index 7710e5a..2ee33da 100644
--- a/sdk/src/java/cyanogenmod/app/StatusBarPanelCustomTile.java
+++ b/sdk/src/java/cyanogenmod/app/StatusBarPanelCustomTile.java
@@ -132,6 +132,11 @@ public class StatusBarPanelCustomTile implements Parcelable {
return user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid;
}
+ /** @hide */
+ public String persistableKey() {
+ return user.getIdentifier() + "|" + pkg + "|" + tag;
+ }
+
public static final Creator<StatusBarPanelCustomTile> CREATOR
= new Creator<StatusBarPanelCustomTile>()
{