Search in sources :

Example 1 with SuggestionsAdapter.getColumnString

use of android.widget.SuggestionsAdapter.getColumnString in project platform_frameworks_base by android.

the class SearchView method getActionKeyMessage.

/**
     * For a given suggestion and a given cursor row, get the action message. If
     * not provided by the specific row/column, also check for a single
     * definition (for the action key).
     *
     * @param c The cursor providing suggestions
     * @param actionKey The actionkey record being examined
     *
     * @return Returns a string, or null if no action key message for this
     *         suggestion
     */
private static String getActionKeyMessage(Cursor c, SearchableInfo.ActionKeyInfo actionKey) {
    String result = null;
    // check first in the cursor data, for a suggestion-specific message
    final String column = actionKey.getSuggestActionMsgColumn();
    if (column != null) {
        result = SuggestionsAdapter.getColumnString(c, column);
    }
    // for the actionkey (for all suggestions)
    if (result == null) {
        result = actionKey.getSuggestActionMsg();
    }
    return result;
}
Also used : SuggestionsAdapter.getColumnString(android.widget.SuggestionsAdapter.getColumnString)

Example 2 with SuggestionsAdapter.getColumnString

use of android.widget.SuggestionsAdapter.getColumnString in project android_frameworks_base by ParanoidAndroid.

the class SearchView method getActionKeyMessage.

/**
     * For a given suggestion and a given cursor row, get the action message. If
     * not provided by the specific row/column, also check for a single
     * definition (for the action key).
     *
     * @param c The cursor providing suggestions
     * @param actionKey The actionkey record being examined
     *
     * @return Returns a string, or null if no action key message for this
     *         suggestion
     */
private static String getActionKeyMessage(Cursor c, SearchableInfo.ActionKeyInfo actionKey) {
    String result = null;
    // check first in the cursor data, for a suggestion-specific message
    final String column = actionKey.getSuggestActionMsgColumn();
    if (column != null) {
        result = SuggestionsAdapter.getColumnString(c, column);
    }
    // for the actionkey (for all suggestions)
    if (result == null) {
        result = actionKey.getSuggestActionMsg();
    }
    return result;
}
Also used : SuggestionsAdapter.getColumnString(android.widget.SuggestionsAdapter.getColumnString)

Example 3 with SuggestionsAdapter.getColumnString

use of android.widget.SuggestionsAdapter.getColumnString in project android_frameworks_base by AOSPA.

the class SearchView method getActionKeyMessage.

/**
     * For a given suggestion and a given cursor row, get the action message. If
     * not provided by the specific row/column, also check for a single
     * definition (for the action key).
     *
     * @param c The cursor providing suggestions
     * @param actionKey The actionkey record being examined
     *
     * @return Returns a string, or null if no action key message for this
     *         suggestion
     */
private static String getActionKeyMessage(Cursor c, SearchableInfo.ActionKeyInfo actionKey) {
    String result = null;
    // check first in the cursor data, for a suggestion-specific message
    final String column = actionKey.getSuggestActionMsgColumn();
    if (column != null) {
        result = SuggestionsAdapter.getColumnString(c, column);
    }
    // for the actionkey (for all suggestions)
    if (result == null) {
        result = actionKey.getSuggestActionMsg();
    }
    return result;
}
Also used : SuggestionsAdapter.getColumnString(android.widget.SuggestionsAdapter.getColumnString)

Example 4 with SuggestionsAdapter.getColumnString

use of android.widget.SuggestionsAdapter.getColumnString in project XobotOS by xamarin.

the class SearchView method getActionKeyMessage.

/**
     * For a given suggestion and a given cursor row, get the action message. If
     * not provided by the specific row/column, also check for a single
     * definition (for the action key).
     *
     * @param c The cursor providing suggestions
     * @param actionKey The actionkey record being examined
     *
     * @return Returns a string, or null if no action key message for this
     *         suggestion
     */
private static String getActionKeyMessage(Cursor c, SearchableInfo.ActionKeyInfo actionKey) {
    String result = null;
    // check first in the cursor data, for a suggestion-specific message
    final String column = actionKey.getSuggestActionMsgColumn();
    if (column != null) {
        result = SuggestionsAdapter.getColumnString(c, column);
    }
    // for the actionkey (for all suggestions)
    if (result == null) {
        result = actionKey.getSuggestActionMsg();
    }
    return result;
}
Also used : SuggestionsAdapter.getColumnString(android.widget.SuggestionsAdapter.getColumnString)

Example 5 with SuggestionsAdapter.getColumnString

use of android.widget.SuggestionsAdapter.getColumnString in project android_frameworks_base by DirtyUnicorns.

the class SearchView method getActionKeyMessage.

/**
     * For a given suggestion and a given cursor row, get the action message. If
     * not provided by the specific row/column, also check for a single
     * definition (for the action key).
     *
     * @param c The cursor providing suggestions
     * @param actionKey The actionkey record being examined
     *
     * @return Returns a string, or null if no action key message for this
     *         suggestion
     */
private static String getActionKeyMessage(Cursor c, SearchableInfo.ActionKeyInfo actionKey) {
    String result = null;
    // check first in the cursor data, for a suggestion-specific message
    final String column = actionKey.getSuggestActionMsgColumn();
    if (column != null) {
        result = SuggestionsAdapter.getColumnString(c, column);
    }
    // for the actionkey (for all suggestions)
    if (result == null) {
        result = actionKey.getSuggestActionMsg();
    }
    return result;
}
Also used : SuggestionsAdapter.getColumnString(android.widget.SuggestionsAdapter.getColumnString)

Aggregations

SuggestionsAdapter.getColumnString (android.widget.SuggestionsAdapter.getColumnString)7