|
|
Created:
6 years, 6 months ago by aurimas (slooooooooow) Modified:
6 years, 6 months ago Reviewers:
Ted C CC:
chromium-reviews, Sungmann Cho Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
Description[Android] Fix SuggestionPopup width on device rotations
BUG=380224
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274753
Patch Set 1 #
Total comments: 2
Patch Set 2 : Sungmann's nit #Patch Set 3 : Rebase #Messages
Total messages: 13 (0 generated)
Hey Ted, Please take a look at this change. This is a cleaner version of https://codereview.chromium.org/310733004/ by sungmann.cho@navercorp.com Aurimas
sungmann.cho@navercorp.com: please let me know if this addresses your bug and if you have any additional comments about this change.
https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... File chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java (right): https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java:58: if (mSuggestionsPopup == null) return; I think we need to check the visibility of |mSuggestionsPopup| here. Because there is a case where |mSuggestionsPopup| is not null but it is not visible. For instance, if we touch the out side of |mSuggestionsPopup| then it will disappear but it will remain not null. So if we change the orientation of the device then the invisible |mSuggestionsPopup| will be visible unintentionally.
https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... File chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java (right): https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java:58: if (mSuggestionsPopup == null) return; On 2014/06/03 21:50:00, Sungmann Cho wrote: > I think we need to check the visibility of |mSuggestionsPopup| here. Because > there is a case where |mSuggestionsPopup| is not null but it is not visible. For > instance, if we touch the out side of |mSuggestionsPopup| then it will disappear > but it will remain not null. So if we change the orientation of the device then > the invisible |mSuggestionsPopup| will be visible unintentionally. Done.
On 2014/06/03 21:56:31, aurimas wrote: > https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... > File > chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java > (right): > > https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... > chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java:58: > if (mSuggestionsPopup == null) return; > On 2014/06/03 21:50:00, Sungmann Cho wrote: > > I think we need to check the visibility of |mSuggestionsPopup| here. Because > > there is a case where |mSuggestionsPopup| is not null but it is not visible. > For > > instance, if we touch the out side of |mSuggestionsPopup| then it will > disappear > > but it will remain not null. So if we change the orientation of the device > then > > the invisible |mSuggestionsPopup| will be visible unintentionally. > > Done. It works perfect for me! Thanks! :)
On 2014/06/03 22:05:23, Sungmann Cho wrote: > On 2014/06/03 21:56:31, aurimas wrote: > > > https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... > > File > > > chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java > > (right): > > > > > https://codereview.chromium.org/315583004/diff/1/chrome/android/shell/java/sr... > > > chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java:58: > > if (mSuggestionsPopup == null) return; > > On 2014/06/03 21:50:00, Sungmann Cho wrote: > > > I think we need to check the visibility of |mSuggestionsPopup| here. Because > > > there is a case where |mSuggestionsPopup| is not null but it is not visible. > > For > > > instance, if we touch the out side of |mSuggestionsPopup| then it will > > disappear > > > but it will remain not null. So if we change the orientation of the device > > then > > > the invisible |mSuggestionsPopup| will be visible unintentionally. > > > > Done. > > It works perfect for me! Thanks! :) lgtm
The CQ bit was checked by aurimas@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/315583004/20001
The CQ bit was unchecked by aurimas@chromium.org
The CQ bit was checked by aurimas@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/315583004/30003
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_...)
Message was sent while issue was closed.
Change committed as 274753 |