equal
deleted
inserted
replaced
358 return; |
358 return; |
359 } |
359 } |
360 |
360 |
361 // Check for keypadlock if the events are from device keypad |
361 // Check for keypadlock if the events are from device keypad |
362 // If events are from accessory device,then do not check for keypadlock |
362 // If events are from accessory device,then do not check for keypadlock |
363 if (aKeyType != EAccessoryVolumeKeys) |
363 if (aKeyType != EAccessoryVolumeKeys && aKeyType != ESideVolumeKeys ) |
364 { |
364 { |
365 |
365 |
366 TInt err=iKeyguardAccess->ShowKeysLockedNote(); |
366 TInt err=iKeyguardAccess->ShowKeysLockedNote(); |
367 |
367 |
368 if (err==KErrNone) |
368 if (err==KErrNone) |
369 { |
369 { |
370 // Device is locked , Discard the key event |
370 // Device is locked , Discard the key event |
371 |
371 |
372 //Start the listener once again |
372 //Start the listener once again |
373 if (aKeyType == ESideVolumeKeys) |
373 |
374 { |
|
375 iMMKeyBearerObserver->Start(); |
|
376 } |
|
377 if (aKeyType == EMediaKeys) |
374 if (aKeyType == EMediaKeys) |
378 { |
375 { |
379 iMediaKeyObserver->Start(); |
376 iMediaKeyObserver->Start(); |
380 } |
377 } |
381 |
378 |