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
frameworks_opt_telephony
Commits
cbb9298b
Commit
cbb9298b
authored
10 years ago
by
Mohamad Ayyash
Committed by
Android (Google) Code Review
10 years ago
Browse files
Options
Download
Plain Diff
Merge "ril: Fix update screen events." into lmp-dev
parents
f17dec63
b9597d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/java/com/android/internal/telephony/RIL.java
src/java/com/android/internal/telephony/RIL.java
+3
-5
No files found.
src/java/com/android/internal/telephony/RIL.java
View file @
cbb9298b
...
...
@@ -2216,8 +2216,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
if
(
oldState
!=
Display
.
STATE_ON
&&
mDefaultDisplayState
==
Display
.
STATE_ON
)
{
sendScreenState
(
true
);
}
else
if
(
oldState
==
Display
.
STATE_ON
&&
mDefaultDisplayState
!=
Display
.
STATE_ON
)
{
}
else
if
(
(
oldState
==
Display
.
STATE_ON
||
oldState
==
Display
.
STATE_UNKNOWN
)
&&
mDefaultDisplayState
!=
Display
.
STATE_ON
)
{
sendScreenState
(
false
);
}
}
...
...
@@ -2239,9 +2239,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
onRadioAvailable
()
{
// In case screen state was lost (due to process crash),
// this ensures that the RIL knows the correct screen state.
PowerManager
pm
=
(
PowerManager
)
mContext
.
getSystemService
(
Context
.
POWER_SERVICE
);
sendScreenState
(
pm
.
isScreenOn
());
updateScreenState
();
}
private
RadioState
getRadioStateFromInt
(
int
stateInt
)
{
...
...
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