Skip to content

Commit

Permalink
Adding methods to LightDialog that support text.
Browse files Browse the repository at this point in the history
  • Loading branch information
donnfelker committed Dec 14, 2012
1 parent b9ff3e8 commit d712c41
Showing 1 changed file with 25 additions and 0 deletions.
Expand Up @@ -125,6 +125,18 @@ public LightDialog setPositiveButton(int text, OnClickListener listener) {
return this;
}

/**
* Set positive button
*
* @param text
* @param listener
* @return this dialog
*/
public LightDialog setPositiveButton(CharSequence text, OnClickListener listener) {
setButton(BUTTON_POSITIVE, text, listener);
return this;
}

/**
* Set positive button
*
Expand All @@ -147,6 +159,19 @@ public LightDialog setNegativeButton(int text, OnClickListener listener) {
return this;
}

/**
* Set negative button
*
* @param text
* @param listener
* @return this dialog
*/
public LightDialog setNegativeButton(CharSequence text, OnClickListener listener) {
setButton(BUTTON_NEGATIVE, text, listener);
return this;
}


/**
* Set negative button
*
Expand Down

0 comments on commit d712c41

Please sign in to comment.