Commit 520e7d85 authored by Tina Wang's avatar Tina Wang Committed by Commit Bot

[ios] The secondary message of PopoverLabelViewController doesn't show up

The condition of showing the secondary message was set incorrectly.

Bug: 1119859
Change-Id: Ifddaa442877f5219571b0fac0971a370be4e7303
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366116
Commit-Queue: Tina Wang <tinazwang@chromium.org>
Reviewed-by: default avatarJavier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800200}
parent 57509a4d
...@@ -113,10 +113,9 @@ constexpr CGFloat kVerticalDistance = 24; ...@@ -113,10 +113,9 @@ constexpr CGFloat kVerticalDistance = 24;
[_scrollView addSubview:textView]; [_scrollView addSubview:textView];
// Only create secondary TextView when |secondaryAttributedString| is not nil. // Only create secondary TextView when |secondaryAttributedString| is not nil
// Set the constraint accordingly. // or empty. Set the constraint accordingly.
if (self.secondaryAttributedString && if (self.secondaryAttributedString.length) {
!self.secondaryAttributedString.length) {
UITextView* secondaryTextView = [[UITextView alloc] init]; UITextView* secondaryTextView = [[UITextView alloc] init];
secondaryTextView.scrollEnabled = NO; secondaryTextView.scrollEnabled = NO;
secondaryTextView.editable = NO; secondaryTextView.editable = NO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment