OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a780907
)
Fix extra space in Suggestions Popup
author
Clara Bayarri
<clarabayarri@google.com>
Tue, 18 Jul 2017 15:42:16 +0000
(16:42 +0100)
committer
Clara Bayarri
<clarabayarri@google.com>
Tue, 18 Jul 2017 15:43:16 +0000
(16:43 +0100)
There was extra space shown when there are no suggestions to show
in the material theme.
Bug:
27559349
Test: manually tested UI
Change-Id: I861fe1f4c534f8c9af6b886b9f6c844e7431db2f
core/java/android/widget/Editor.java
patch
|
blob
|
history
diff --git
a/core/java/android/widget/Editor.java
b/core/java/android/widget/Editor.java
index
04a8265
..
8d59340
100644
(file)
--- a/
core/java/android/widget/Editor.java
+++ b/
core/java/android/widget/Editor.java
@@
-3591,6
+3591,8
@@
public class Editor {
mIsShowingUp = true;
super.show();
}
+
+ mSuggestionListView.setVisibility(mNumberOfSuggestions == 0 ? View.GONE : View.VISIBLE);
}
@Override