Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
59b3733d
authored
Mar 08, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed - Voice Speech issue.
parent
1526e0f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
app/src/arrow/java/com/vsoft/servicenow/chat/ChatActivity.java
app/src/arrow/java/com/vsoft/servicenow/chat/ChatActivity.java
View file @
59b3733d
...
@@ -216,14 +216,13 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
...
@@ -216,14 +216,13 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
scrollToBottom
();
scrollToBottom
();
}
}
private
void
addParticipantsLog
(
int
numUsers
)
{
addLog
(
getResources
().
getQuantityString
(
R
.
plurals
.
message_participants
,
numUsers
,
numUsers
));
}
private
void
addMessage
(
String
username
,
String
message
)
{
private
void
addMessage
(
String
username
,
String
message
)
{
if
(
username
.
isEmpty
()
||
message
.
isEmpty
())
if
(
username
.
isEmpty
()
||
message
.
isEmpty
())
return
;
return
;
if
(
CURRENT_STATE
==
VOICE_STATE
&&
!
username
.
equals
(
PrefManager
.
getSharedPref
(
this
,
PrefManager
.
PREFERENCE_FIRST_NAME
)))
{
if
(
CURRENT_STATE
==
VOICE_STATE
&&
!
username
.
equals
(
PrefManager
.
getSharedPref
(
this
,
PrefManager
.
PREFERENCE_FIRST_NAME
)))
{
if
(
droidSpeech
!=
null
)
{
droidSpeech
.
closeDroidSpeechOperations
();
}
speaker
.
allow
(
true
);
speaker
.
allow
(
true
);
speaker
.
speak
(
message
);
speaker
.
speak
(
message
);
speaker
.
allow
(
false
);
speaker
.
allow
(
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment