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
fc20299f
Commit
fc20299f
authored
9 years ago
by
Pavel Zhamaitsiak
Browse files
Options
Download
Email Patches
Plain Diff
Don't disable IMS if SIM is not ready
Bug: 27904215 Change-Id: Ieb2688bb8bc4916c28d1e7d8a48f7bdc854582cb
parent
428d4042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/java/com/android/ims/ImsManager.java
src/java/com/android/ims/ImsManager.java
+8
-0
No files found.
src/java/com/android/ims/ImsManager.java
View file @
fc20299f
...
...
@@ -543,6 +543,14 @@ public class ImsManager {
* @param force update
*/
public
static
void
updateImsServiceConfig
(
Context
context
,
int
phoneId
,
boolean
force
)
{
if
(!
force
)
{
if
(
TelephonyManager
.
getDefault
().
getSimState
()
!=
TelephonyManager
.
SIM_STATE_READY
)
{
log
(
"updateImsServiceConfig: SIM not ready"
);
// Don't disable IMS if SIM is not ready
return
;
}
}
final
ImsManager
imsManager
=
ImsManager
.
getInstance
(
context
,
phoneId
);
if
(
imsManager
!=
null
&&
(!
imsManager
.
mConfigUpdated
||
force
))
{
try
{
...
...
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