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
6759d9c2
authored
Apr 18, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Removed unused code.
parent
58b67311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
app/src/main/java/com/vsoft/servicenow/ui/ChatActivity.java
app/src/main/java/com/vsoft/servicenow/ui/ChatActivity.java
View file @
6759d9c2
package
com
.
vsoft
.
servicenow
.
ui
;
import
android.app.NotificationManager
;
import
android.content.BroadcastReceiver
;
import
android.content.Context
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.IntentFilter
;
import
android.graphics.Color
;
import
android.os.Bundle
;
import
android.speech.tts.TextToSpeech
;
import
android.speech.tts.UtteranceProgressListener
;
import
android.support.v4.content.LocalBroadcastManager
;
import
android.support.v7.app.ActionBar
;
import
android.support.v7.app.AlertDialog
;
import
android.support.v7.app.AppCompatActivity
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.Toolbar
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.KeyEvent
;
import
android.view.MenuItem
;
import
android.view.MotionEvent
;
...
...
@@ -108,27 +100,6 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
}
@Override
public
void
onResume
()
{
super
.
onResume
();
LocalBroadcastManager
.
getInstance
(
this
)
.
registerReceiver
(
mMessageReceiver
,
new
IntentFilter
(
Constants
.
BROADCAST_NOTIFICATION
));
}
private
final
BroadcastReceiver
mMessageReceiver
=
new
BroadcastReceiver
()
{
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
CatalogueLog
.
e
(
"Notification Receive"
);
final
NotificationManager
notificationManager
=
(
NotificationManager
)
getSystemService
(
Context
.
NOTIFICATION_SERVICE
);
//Play notification sound because Above we already cancel notifications.
// That's why we need to play explicitly
Util
.
playNotificationSound
(
ChatActivity
.
this
);
}
};
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -546,8 +517,6 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
@Override
public
void
onPause
()
{
LocalBroadcastManager
.
getInstance
(
this
)
.
unregisterReceiver
(
mMessageReceiver
);
if
(
speaker
!=
null
&&
speaker
.
isSpeaking
())
{
speaker
.
stop
();
}
...
...
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