Bring up IME and focus on input when scroll to top.

Do this behind a feature flag AND only when "Always show keyboard" is selected or in prefix state.

Bug: 218846025
Test: keyboard shown when swiping up for QSB and AA+ (both main and work). Keyboard not shown when either the feature flag or Always show keyboard is disabled.
Change-Id: I3df2e0e44a8313eaf749cd6b91b7f9d0b9b80ec3
This commit is contained in:
Holly Sun
2022-10-03 16:56:26 -07:00
parent 5db9942c61
commit a793fc6e2c
4 changed files with 48 additions and 4 deletions

View File

@@ -25,4 +25,11 @@ public class BaseSearchConfig {
public boolean isKeyboardSyncEnabled() {
return false;
}
/**
* Returns whether IME is enabled on swipe up.
*/
public boolean isImeEnabledOnSwipeUp() {
return false;
}
}