private void setTextInput(String action, JSONObject data) {
        Bundle input = RemoteInput.getResultsFromIntent(getIntent());
        if (input == null) return;

        try {
            data.put("text", input.getCharSequence(action));
        } catch (JSONException jsonException) {
            jsonException.printStackTrace();
        }
    }
Set the text if any remote input is given.
@param action The action where to look for.
@param data The object to extend.
src/android/NotificationClickActivity.java