Merge "Fixed a crash when the more card or the dismissview was longpressed" into lmp-dev

This commit is contained in:
Selim Cinek
2014-09-11 12:20:20 +00:00
committed by Android (Google) Code Review

View File

@ -857,6 +857,10 @@ public abstract class BaseStatusBar extends SystemUI implements
// Assume we are a status_bar_notification_row
final NotificationGuts guts = (NotificationGuts) v.findViewById(
R.id.notification_guts);
if (guts == null) {
// This view has no guts. Examples are the more card or the dismiss all view
return false;
}
// Already showing?
if (guts.getVisibility() == View.VISIBLE) {