extensions/amp-story/1.0/amp-story.js
/**
   * Returns whether the Android soft keyboard is most likely open, as
   * calculated using multiple factors. Note that this calculation will
   * incorrectly return true in cases where the user has manually dismissed the
   * keyboard while retaining focus on a text field.
   * @return {boolean}
   * @private
   */
Returns whether the Android soft keyboard is most likely open, as
calculated using multiple factors. Note that this calculation will
incorrectly return true in cases where the user has manually dismissed the
keyboard while retaining focus on a text field.
@return {boolean}
@private
Returns whether the Android soft keyboard is most likely open as calculated using multiple factors . Note that this calculation will incorrectly return true in cases where the user has manually dismissed the keyboard while retaining focus on a text field . @return { boolean } @private
androidSoftKeyboardIsProbablyOpen_() {
    const platformIsAndroid = this.platform_.isAndroid();
    const tagNamesThatTriggerKeyboard = ['INPUT', 'TEXTAREA'];
    const textFieldHasFocus = tagNamesThatTriggerKeyboard.includes(
      this.win.document.activeElement?.tagName
    );
    return platformIsAndroid && textFieldHasFocus;
  }
androidSoftKeyboardIsProbablyOpen_ ( ) { const platformIsAndroid = this . platform_ . isAndroid ( ) ; const tagNamesThatTriggerKeyboard = [ 'INPUT' , 'TEXTAREA' ] ; const textFieldHasFocus = tagNamesThatTriggerKeyboard . includes ( this . win . document . activeElement ?. tagName ) ; return platformIsAndroid && textFieldHasFocus ; }
Returns whether the Android soft keyboard is most likely open, as
 calculated using multiple factors.
Returns whether the Android soft keyboard is most likely open as calculated using multiple factors .