Skip to content

Commit e74e7e2

Browse files
Martin SjolinJean-Baptiste Queru
authored andcommitted
Remove top panel in alert dialog if empty.
Remove the topPanel in the alert dialog if it is empty and therefore invisible. This gives the dialog content more space, and it makes dialog positioning on the screen correct. Change-Id: I8ffd9bd9b2360b0ad4338c32c21ab69c055d66a0
1 parent 2594066 commit e74e7e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/com/android/internal/app/AlertController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ private boolean setupTitle(LinearLayout topPanel) {
435435
View titleTemplate = mWindow.findViewById(R.id.title_template);
436436
titleTemplate.setVisibility(View.GONE);
437437
mIconView.setVisibility(View.GONE);
438+
topPanel.setVisibility(View.GONE);
438439
hasTitle = false;
439440
}
440441
}

0 commit comments

Comments
 (0)