深色主题中的 AlertDialog 棒棒糖取消按钮黑色

AlertDialog lollipop cancel button black in dark theme

我的应用程序有一个深色主题 (Theme.AppCompat)。当我尝试添加 AlertDialog 时,我的取消按钮是黑色的。这只发生在我的 Moto X 5.0 上(我也试过 5.1 上的模拟器和 5.0 上的三星 Galaxy S4)。这是屏幕截图:

我的亮度高的时候可以看的比较清楚,我的亮度低的时候几乎看不出来。有人知道如何解决这个问题吗?

代码AlertDialog创建:

AlertDialog.Builder builder = new AlertDialog.Builder(GigInfoActivity.this);
builder.setTitle("Venue not added");
builder.setMessage("To mark this gig as favorite you have to add the venue. Do you want to add the venue?");
builder.setPositiveButton(android.R.string.yes, null);
builder.setNegativeButton(android.R.string.no, null);
builder.show();

使用这个插件。

https://github.com/afollestad/material-dialogs

使用它您可以自定义颜色和其他参数,并且兼容所有 android 版本。

这可能是 Android 5.0 的 Moto X 上的一个错误。

我现在有 Android 5.1,它又可以正常工作了。