diff -r bbcfd14ce6a7 -r 9971b621ef6c securitydialogs/Autolock/src/AutolockContainer.cpp --- a/securitydialogs/Autolock/src/AutolockContainer.cpp Wed Apr 14 16:51:06 2010 +0300 +++ b/securitydialogs/Autolock/src/AutolockContainer.cpp Tue Apr 27 17:31:46 2010 +0300 @@ -29,6 +29,9 @@ #include #include "autolock.hrh" #include +#include +#include +#include #include @@ -303,7 +306,24 @@ gc.SetPenStyle(CGraphicsContext::EDottedPen); gc.DrawRoundRect(box,cornerSize); gc.BitBltMasked(TPoint(aCallRect_x,aCallRect_y),iBitmapCall,TRect(TPoint(0,0),TPoint(aCallRect_width,aCallRect_height)), iMaskCall, ETrue); - aCallRect_y+=100; // coordinates are realtive to TRect, not to Screen + aCallRect_y+=100; // coordinates are relative to TRect, not to Screen + + // if active call, dismiss all pending notes. This avoids them on top of the BigRedButton + CAknSoftNotifier *softNotifier = NULL; + TRAPD (err, { + softNotifier = CAknSoftNotifier::NewL(); + softNotifier->AddNotificationL(ESetIdleState, 0); + // softNotifier->SetIdleStateL(EFalse); + };) + delete softNotifier; + // during any call ,the touch need to be enabled, so that BigRedButton is available + // It will be re-enabled when the call ends + RAknKeyLock keylock; + if ( keylock.Connect() == KErrNone ) + { + keylock.DisableWithoutNote(); + keylock.Close(); + } } } else if (iBitmap && !iMask)