diff options
| author | Daniel Sandler <dsandler@android.com> | 2012-06-13 12:17:07 -0400 |
|---|---|---|
| committer | Daniel Sandler <dsandler@android.com> | 2012-06-13 12:17:07 -0400 |
| commit | 916ad91c3860344250c00b6b3597db6464229c02 (patch) | |
| tree | b557d4591d67fc3288a490cf212236cfa4840330 /core/java/android | |
| parent | 602ad1c978ddbf8be2c272cd610e18a626cd8b33 (diff) | |
Remove line3 in big notification unless there's text to show.
If you have no subText or summaryText in a big template, but
you *do* have a number, the overflow bar (below the big text
or inbox or whatever) would have shown; now it does not.
Bug: 6657006
Change-Id: Ib2af2712da3a98227bd8d697560893adbdc427e9
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/Notification.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index ec35a3f5214a..bb497c02719e 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1670,6 +1670,9 @@ public class Notification implements Parcelable contentView.setTextViewText(R.id.text, overflowText); contentView.setViewVisibility(R.id.overflow_divider, View.VISIBLE); contentView.setViewVisibility(R.id.line3, View.VISIBLE); + } else { + contentView.setViewVisibility(R.id.overflow_divider, View.GONE); + contentView.setViewVisibility(R.id.line3, View.GONE); } return contentView; @@ -1812,6 +1815,7 @@ public class Notification implements Parcelable // Remove the content text so line3 only shows if you have a summary final boolean hadThreeLines = (mBuilder.mContentText != null && mBuilder.mSubText != null); mBuilder.mContentText = null; + RemoteViews contentView = getStandardView(R.layout.notification_template_big_text); if (hadThreeLines) { |
