mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 06:50:15 -05:00
ConversationFragment: Remove unused REQUEST_CODE_SPEECH.
This commit is contained in:
parent
7f680f1282
commit
aea85d6cd6
@ -91,7 +91,6 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public class ConversationFragment extends Fragment implements ServerListener, ConversationListener, ServiceConnection {
|
public class ConversationFragment extends Fragment implements ServerListener, ConversationListener, ServiceConnection {
|
||||||
public static final String TRANSACTION_TAG = "fragment_conversation";
|
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_JOIN = 1;
|
||||||
private static final int REQUEST_CODE_USERS = 2;
|
private static final int REQUEST_CODE_USERS = 2;
|
||||||
@ -621,12 +620,6 @@ public class ConversationFragment extends Fragment implements ServerListener, Co
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (requestCode) {
|
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:
|
case REQUEST_CODE_JOIN:
|
||||||
joinChannelBuffer = data.getExtras().getString("channel");
|
joinChannelBuffer = data.getExtras().getString("channel");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user