Skip to content

Commit 595b656

Browse files
Dianne HackbornAndroid Git Automerger
authored andcommitted
am 977abbb: am 48de12c: Merge "Keep keyguard from starting after finished call when screen is on"
* commit '977abbb887cfaf7cd8a0d31235281fbdd639ac19': Keep keyguard from starting after finished call when screen is on
2 parents abac0cd + 977abbb commit 595b656

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback {
228228

229229
private KeyguardUpdateMonitor mUpdateMonitor;
230230

231-
private boolean mScreenOn = false;
231+
private boolean mScreenOn;
232232

233233
// last known state of the cellular connection
234234
private String mPhoneState = TelephonyManager.EXTRA_STATE_IDLE;
@@ -393,6 +393,8 @@ public KeyguardViewMediator(Context context, PhoneWindowManager callback,
393393
final ContentResolver cr = mContext.getContentResolver();
394394
mShowLockIcon = (Settings.System.getInt(cr, "show_status_bar_lock", 0) == 1);
395395

396+
mScreenOn = mPM.isScreenOn();
397+
396398
mLockSounds = new SoundPool(1, AudioManager.STREAM_SYSTEM, 0);
397399
String soundPath = Settings.System.getString(cr, Settings.System.LOCK_SOUND);
398400
if (soundPath != null) {

0 commit comments

Comments
 (0)