am 32f4ceb2: Dismiss more suggestions panel when suggestions strip is closed

* commit '32f4ceb2434b6f204cf8152b406d0f9a642feb73':
  Dismiss more suggestions panel when suggestions strip is closed
main
Tadashi G. Takaoka 2012-06-14 14:46:23 -07:00 committed by Android Git Automerger
commit de1d88eb41
3 changed files with 3 additions and 2 deletions

View File

@ -159,7 +159,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
@Override
public boolean dismissMoreKeysPanel() {
if (mIsDismissing) return false;
if (mIsDismissing || mController == null) return false;
mIsDismissing = true;
final boolean dismissed = mController.dismissMoreKeysPanel();
mIsDismissing = false;

View File

@ -167,7 +167,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
@Override
public boolean dismissMoreKeysPanel() {
if (mIsDismissing) return false;
if (mIsDismissing || mController == null) return false;
mIsDismissing = true;
final boolean dismissed = mController.dismissMoreKeysPanel();
mIsDismissing = false;

View File

@ -884,5 +884,6 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
super.onDetachedFromWindow();
mHandler.cancelAllMessages();
hidePreview();
dismissMoreSuggestions();
}
}