# HG changeset patch # User Shabe Razvi # Date 1285340673 -3600 # Node ID 6364b99b9e27778de87f095e40a8e0995bcbac2a # Parent 3ac3aaebaee5b2a7906ee595aacd7be84f4e3af8 Remove attempts to access unknown cenrep repository 0x2002b3aa, to workaround Bug 3711 diff -r 3ac3aaebaee5 -r 6364b99b9e27 homescreenapp/hsapplicationlauncher/src/hsapplicationlauncher.cpp --- a/homescreenapp/hsapplicationlauncher/src/hsapplicationlauncher.cpp Mon Sep 20 10:19:07 2010 +0300 +++ b/homescreenapp/hsapplicationlauncher/src/hsapplicationlauncher.cpp Fri Sep 24 16:04:33 2010 +0100 @@ -117,7 +117,7 @@ // void CHsLaunch::ConstructL() { - iRepository = CRepository::NewL(TUid::Uid(0x2002b3aa)); + // iRepository = CRepository::NewL(TUid::Uid(0x2002b3aa)); iShutdownMonitor = CHsShutdownMonitor::NewL( *this ); iShutdownMonitor->StartMonitor(); @@ -420,8 +420,8 @@ // TBool CHsLaunch::IsLanguageSelectedL() { - TInt value; - User::LeaveIfError(iRepository->Get(0x00000007, value)); + TInt value = 1; // yes? + // User::LeaveIfError(iRepository->Get(0x00000007, value)); return value; } @@ -432,9 +432,12 @@ // void CHsLaunch::StartListeningLanguageSelectionL() { - iCenRepNotifyHandler = CCenRepNotifyHandler::NewL( + if (iRepository) + { + iCenRepNotifyHandler = CCenRepNotifyHandler::NewL( *this, *iRepository, CCenRepNotifyHandler::EIntKey, 0x00000007); - iCenRepNotifyHandler->StartListeningL(); + iCenRepNotifyHandler->StartListeningL(); + } } // ----------------------------------------------------------------------------- @@ -444,9 +447,12 @@ // void CHsLaunch::StopListeningLanguageSelection() { - iCenRepNotifyHandler->StopListening(); - delete iCenRepNotifyHandler; - iCenRepNotifyHandler = NULL; + if (iCenRepNotifyHandler) + { + iCenRepNotifyHandler->StopListening(); + delete iCenRepNotifyHandler; + iCenRepNotifyHandler = NULL; + } } // End of File