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>
This commit is contained in:
Roman Birg 2016-05-04 13:54:27 -07:00 committed by Gerrit Code Review
parent 8770189b8d
commit 10f165d5d0
1 changed files with 5 additions and 0 deletions

View File

@ -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>()
{