connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectionerrordiscreetpopupnotif.cpp
--- a/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectionerrordiscreetpopupnotif.cpp Tue May 25 13:08:02 2010 +0300
+++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/connectionerrordiscreetpopupnotif.cpp Wed Jun 09 10:07:12 2010 +0300
@@ -16,6 +16,8 @@
*/
// INCLUDE FILES
+#include <e32property.h>
+#include <ScreensaverInternalPSKeys.h>
#include "connectionerrordiscreetpopupnotif.h"
#include "connectionerrordiscreetpopup.h"
#include "ConnUiUtilsNotif.h"
@@ -46,9 +48,14 @@
void CConnectionErrorDiscreetPopupNotif::StartL( const TDesC8& aBuffer,
TInt aReplySlot, const RMessagePtr2& aMessage )
{
- if ( iActiveNote )
+ TInt screenSaverOn( 0 );
+ RProperty::Get( KPSUidScreenSaver,
+ KScreenSaverOn,
+ screenSaverOn );
+
+ if ( iActiveNote || screenSaverOn > 0 )
{
- // Note is already active
+ // Note is already active or Screensaver is on.
aMessage.Complete( KErrNone );
return;
}