File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/html/guide/topics/providers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ String[] mSelectionArgs = {""};
455455<p>
456456 In the next snippet, if the user doesn't enter a word, the selection clause is set to
457457 <code>null</code>, and the query returns all the words in the provider. If the user enters
458- a word, the selection clause is set to <code>UserDictionary.Words.Word + " = ?"</code> and
458+ a word, the selection clause is set to <code>UserDictionary.Words.WORD + " = ?"</code> and
459459 the first element of selection arguments array is set to the word the user enters.
460460</p>
461461<pre class="prettyprint">
@@ -477,7 +477,7 @@ if (TextUtils.isEmpty(mSearchString)) {
477477
478478} else {
479479 // Constructs a selection clause that matches the word that the user entered.
480- mSelectionClause = " = ?";
480+ mSelectionClause = UserDictionary.Words.WORD + " = ?";
481481
482482 // Moves the user's input string to the selection arguments.
483483 mSelectionArgs[0] = mSearchString;
You can’t perform that action at this time.
0 commit comments