Skip to content

Commit

Permalink
Update API of preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Schürmann committed Mar 20, 2015
1 parent 70a17dc commit 9abb91d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,23 @@ private int getIndexOfProviderList(String packageName) {
return 0;
}

/**
* Public API
*/
public String getEntry() {
return getEntryByValue(mSelectedPackage);
}

/**
* Public API
*/
public String getValue() {
return mSelectedPackage;
}

/**
* Public API
*/
public void setValue(String packageName) {
setAndPersist(packageName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@ private void save(long newValue) {
setAndPersist(newValue);
}

/**
* Public API
*/
public void setValue(long keyId) {
setAndPersist(keyId);
}

/**
* Public API
*/
public long getValue() {
return mKeyId;
}

private void setAndPersist(long newValue) {
mKeyId = newValue;

Expand Down

0 comments on commit 9abb91d

Please sign in to comment.