accesspointcontrol/apcontrollistplugin/src/apcontrollistplugin.cpp
branchRCL_3
changeset 24 c45d4fe2ff0a
parent 0 5a93021fdf25
--- a/accesspointcontrol/apcontrollistplugin/src/apcontrollistplugin.cpp	Tue Apr 27 17:03:25 2010 +0300
+++ b/accesspointcontrol/apcontrollistplugin/src/apcontrollistplugin.cpp	Tue May 11 16:35:05 2010 +0300
@@ -193,24 +193,24 @@
             iContainer = NULL;
             User::Leave( error );
             }
+            
+        AppUi()->AddToViewStackL( *this, iContainer );
+        iContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
         
-	    if (!iAPIWrapper)  
-		    {
-	    	iAPIWrapper = new( ELeave ) CAPControlListAPIWrapper(*this);
-	    	iAPIWrapper->ConstructL();
-	    	}
-	    if (!iChangeNotifier)  
-		    {
-	    	iChangeNotifier = new( ELeave ) CAPControlListCapsChange(*this);
+        if (!iAPIWrapper)  
+            {
+            iAPIWrapper = new( ELeave ) CAPControlListAPIWrapper(*this);
+            iAPIWrapper->ConstructL();
+            }
+        if (!iChangeNotifier)  
+            {
+            iChangeNotifier = new( ELeave ) CAPControlListCapsChange(*this);
             iChangeNotifier->NotifyCapsChange();
-	    	}
+            }
 	    				
-		    ShowInfoNoteL(R_QTN_ACL_WAIT_READING_SIM);
-    	  iAPIWrapper->ReadData();  
+        ShowInfoNoteL(R_QTN_ACL_WAIT_READING_SIM);
+        iAPIWrapper->ReadData();  
         iContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
-    	  		
-	    
-        AppUi()->AddToViewStackL( *this, iContainer );
         }
     CLOG( ( ESelector, 0, _L( "<- CAPControlListPlugin::DoActivateL" ) ) );
     }