Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
rockchip_frameworks_opt_net_ims
Commits
0c9c09e1
Commit
0c9c09e1
authored
11 years ago
by
Etan Cohen
Browse files
Options
Download
Email Patches
Plain Diff
Make sure IMS service is created before calling on/off APIs.
Change-Id: I5ab50e570d06865b3b12a65454c0d4b2803c4ffc
parent
7da5a11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/java/com/android/ims/ImsManager.java
src/java/com/android/ims/ImsManager.java
+6
-0
No files found.
src/java/com/android/ims/ImsManager.java
View file @
0c9c09e1
...
...
@@ -182,6 +182,8 @@ public class ImsManager {
*/
public
int
open
(
int
serviceClass
,
PendingIntent
incomingCallPendingIntent
,
ImsConnectionStateListener
listener
)
throws
ImsException
{
// TODO: check global IMS-enabled property and do not open if disabled
checkAndThrowExceptionIfServiceUnavailable
();
if
(
incomingCallPendingIntent
==
null
)
{
...
...
@@ -573,6 +575,8 @@ public class ImsManager {
* Used for turning on IMS.if its off already
*/
public
void
turnOnIms
()
throws
ImsException
{
checkAndThrowExceptionIfServiceUnavailable
();
try
{
mImsService
.
turnOnIms
();
}
catch
(
RemoteException
e
)
{
...
...
@@ -585,6 +589,8 @@ public class ImsManager {
* Once turned off, all calls will be over CS.
*/
public
void
turnOffIms
()
throws
ImsException
{
checkAndThrowExceptionIfServiceUnavailable
();
try
{
mImsService
.
turnOffIms
();
}
catch
(
RemoteException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
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