Merge "Fix bug swiping away NO_CLEAR notifications."

This commit is contained in:
Daniel Sandler
2011-09-11 17:08:41 -07:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 17 deletions

View File

@@ -760,12 +760,10 @@ public class PhoneStatusBar extends StatusBar {
}
});
} else {
if ((notification.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
vetoButton.setVisibility(View.INVISIBLE);
} else {
vetoButton.setVisibility(View.GONE);
}
vetoButton.setVisibility(View.GONE);
}
vetoButton.setContentDescription(mContext.getString(
R.string.accessibility_remove_notification));
// the large icon
ImageView largeIcon = (ImageView)row.findViewById(R.id.large_icon);
@@ -957,12 +955,7 @@ public class PhoneStatusBar extends StatusBar {
}
});
} else {
if ((sbn.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
vetoButton.setVisibility(View.INVISIBLE);
vetoButton.setContentDescription("VETO");
} else {
vetoButton.setVisibility(View.GONE);
}
vetoButton.setVisibility(View.GONE);
}
vetoButton.setContentDescription(mContext.getString(
R.string.accessibility_remove_notification));

View File

@@ -1747,12 +1747,7 @@ public class TabletStatusBar extends StatusBar implements
}
});
} else {
if ((sbn.notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) {
vetoButton.setVisibility(View.INVISIBLE);
vetoButton.setContentDescription("VETO");
} else {
vetoButton.setVisibility(View.GONE);
}
vetoButton.setVisibility(View.GONE);
}
vetoButton.setContentDescription(mContext.getString(
R.string.accessibility_remove_notification));