am 62b532c7: am d2d8c553: am e91c37de: Fixes wrongly nested braces. Bug: 17499985 automerge: cc7917d
automerge: 4fc0aac
* commit '4fc0aacb1add76df5fde2c9b24f96f8bc3e9dc1d':
Fixes wrongly nested braces. Bug: 17499985
This commit is contained in:
@@ -37,7 +37,7 @@ so you can type replies instead.</p>
|
|||||||
|
|
||||||
<h2 id="VoiceInput">Define the Voice Input</h2>
|
<h2 id="VoiceInput">Define the Voice Input</h2>
|
||||||
|
|
||||||
<p>To create an action that supports voice input, create an instance of
|
<p>To create an action that supports voice input, create an instance of
|
||||||
{@link android.support.v4.app.RemoteInput.Builder} that you can add to your notification action.
|
{@link android.support.v4.app.RemoteInput.Builder} that you can add to your notification action.
|
||||||
This class's constructor accepts a string that the system uses as
|
This class's constructor accepts a string that the system uses as
|
||||||
the key for the voice input, which you'll later use to retrieve the text of the
|
the key for the voice input, which you'll later use to retrieve the text of the
|
||||||
@@ -166,9 +166,8 @@ which is referenced by the <code>EXTRA_VOICE_REPLY</code> key that is used in th
|
|||||||
|
|
||||||
private CharSequence getMessageText(Intent intent) {
|
private CharSequence getMessageText(Intent intent) {
|
||||||
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
|
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
|
||||||
if (remoteInput != null) {
|
if (remoteInput != null) {
|
||||||
return remoteInput.getCharSequence(EXTRA_VOICE_REPLY);
|
return remoteInput.getCharSequence(EXTRA_VOICE_REPLY);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user