phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclresultinfodlg.cpp
branchRCL_3
changeset 9 0d28c1c5b6dd
parent 8 5586b4d2ec3e
child 11 2828b4d142c0
--- a/phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclresultinfodlg.cpp	Wed Apr 14 15:45:35 2010 +0300
+++ b/phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclresultinfodlg.cpp	Tue Apr 27 16:23:35 2010 +0300
@@ -594,12 +594,16 @@
     
     //Set NullString to the the NaviPane Decorator
     //The simplest way of doin things. 
-    iNaviPane = reinterpret_cast<CAknNavigationControlContainer*>(
+    //Add the navigation decorators only if the usual statuspane layout is used
+    if ( statusPane->CurrentLayoutResId() == R_AVKON_STATUS_PANE_LAYOUT_USUAL_EXT )
+        {
+        iNaviPane = reinterpret_cast<CAknNavigationControlContainer*>(
             statusPane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
     
-    iNaviDecorator = iNaviPane->CreateNavigationLabelL( KNullDesC );
+        iNaviDecorator = iNaviPane->CreateNavigationLabelL( KNullDesC );
     
-    iNaviPane->PushL( *iNaviDecorator );          
+        iNaviPane->PushL( *iNaviDecorator );  
+        }
     }
 
 // ---------------------------------------------------------------------------