Merge "Fixed AlertController not showing the title divider when a ListView is used in combination with a custom view." am: 461d9c4b4b am: 29e0996552 am: e1a23c7fa5 am: b796bfd4f2
am: 28f970f23d
Change-Id: I059588f29ae8c3182676caa90a01e6f84d66bc25
diff --git a/v7/appcompat/src/android/support/v7/app/AlertController.java b/v7/appcompat/src/android/support/v7/app/AlertController.java
index 986baf3..5ff4537 100644
--- a/v7/appcompat/src/android/support/v7/app/AlertController.java
+++ b/v7/appcompat/src/android/support/v7/app/AlertController.java
@@ -501,10 +501,8 @@
// Only show the divider if we have a title.
View divider = null;
- if (mMessage != null || mListView != null || hasCustomPanel) {
- if (!hasCustomPanel) {
- divider = topPanel.findViewById(R.id.titleDividerNoCustom);
- }
+ if (mMessage != null || mListView != null) {
+ divider = topPanel.findViewById(R.id.titleDividerNoCustom);
}
if (divider != null) {