Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added getter and setter for color value #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,24 @@ public String getFragmentTag() {
return "color_" + getKey();
}

/**
* Get the color of the key. This should be one of the entries in {@link #getPresets()}.
*
* @return The color of the key
*/
public int getColor() {
return color;
}

/**
* Sets the color selected. This should be one of the entries in {@link #getPresets()}.
*
* @param color The color to set for the key
*/
public void setColor(@ColorInt int color) {
this.color = color;
}

public interface OnShowDialogListener {

void onShowColorPickerDialog(String title, int currentColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,24 @@ public String getFragmentTag() {
return "color_" + getKey();
}

/**
* Get the color of the key. This should be one of the entries in {@link #getPresets()}.
*
* @return The color of the key
*/
public int getColor() {
return color;
}

/**
* Sets the color selected. This should be one of the entries in {@link #getPresets()}.
*
* @param color The color to set for the key
*/
public void setColor(@ColorInt int color) {
this.color = color;
}

public interface OnShowDialogListener {

void onShowColorPickerDialog(String title, int currentColor);
Expand Down