1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-21 16:35:09 -05:00

ConversationFragment: Remove unused REQUEST_CODE_SPEECH.

This commit is contained in:
Sebastian Kaspari 2015-04-24 22:20:03 +02:00
parent 7f680f1282
commit aea85d6cd6

View File

@ -91,7 +91,6 @@ import java.util.List;
*/
public class ConversationFragment extends Fragment implements ServerListener, ConversationListener, ServiceConnection {
public static final String TRANSACTION_TAG = "fragment_conversation";
public static final int REQUEST_CODE_SPEECH = 99;
private static final int REQUEST_CODE_JOIN = 1;
private static final int REQUEST_CODE_USERS = 2;
@ -621,12 +620,6 @@ public class ConversationFragment extends Fragment implements ServerListener, Co
}
switch (requestCode) {
case REQUEST_CODE_SPEECH:
ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
if (matches.size() > 0) {
input.setText(matches.get(0));
}
break;
case REQUEST_CODE_JOIN:
joinChannelBuffer = data.getExtras().getString("channel");
break;