# HG changeset patch # User William Roberts # Date 1284568351 -3600 # Node ID b19f22d9e323c7dcfb45c1ed3795a0cf78271c25 # Parent 35368b604b28f8513fc56e482527dcc64f757d65 Remove attempts to access unknown cenrep repository 0x2002b3aa, to workaround Bug 3711 diff -r 35368b604b28 -r b19f22d9e323 homescreenapp/hsapplicationlauncher/src/hsapplicationlauncher.cpp --- a/homescreenapp/hsapplicationlauncher/src/hsapplicationlauncher.cpp Thu Sep 02 20:17:27 2010 +0300 +++ b/homescreenapp/hsapplicationlauncher/src/hsapplicationlauncher.cpp Wed Sep 15 17:32:31 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