Skip to content

Commit

Permalink
Merge pull request #37 from androidsx/apply-selector-in-dialog-goToMail
Browse files Browse the repository at this point in the history
Apply selector in dialog go to mail
  • Loading branch information
ompemi committed Sep 6, 2014
2 parents 2ffe2fb + 288b709 commit d42f174
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions LibraryRateMe/src/com/androidsx/rateme/DialogRateMe.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void onClick(View v) {
@Override
public void onClick(View v) {
if (goToMail) {
confirmGoToMailDialog(getArguments()).show();
confirmGoToMailDialog(getArguments());
Log.d(TAG, "got to Mail for explain what is the problem");
} else {
dismiss();
Expand Down Expand Up @@ -237,7 +237,14 @@ public void onClick(DialogInterface dialog, int id) {
dismiss();
}
});
return builder.create();

AlertDialog dialog = builder.create();
dialog.show();
Button cancel = dialog.getButton(DialogInterface.BUTTON_NEGATIVE);
cancel.setBackgroundDrawable(getResources().getDrawable(R.drawable.selector));
Button yes = dialog.getButton(DialogInterface.BUTTON_POSITIVE);
yes.setBackgroundDrawable(getResources().getDrawable(R.drawable.selector));
return dialog;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private void AlertMenu() {
new DialogRateMe.Builder(this)
.setEmail(getString(R.string.email_address))
.setShowShareButton(true)
.setGoToMail(false)
.setGoToMail(true)
.setTitleBackgroundColor(Color.GRAY)
.setDialogColor(Color.GRAY)
.setLineDividerColor(Color.WHITE)
Expand Down

0 comments on commit d42f174

Please sign in to comment.