idlefw/plugins/profileplugin/src/caiprofileplugin.cpp
branchRCL_3
changeset 130 67f2ed48ad91
parent 122 6cadd6867c17
--- a/idlefw/plugins/profileplugin/src/caiprofileplugin.cpp	Wed Sep 15 12:32:36 2010 +0300
+++ b/idlefw/plugins/profileplugin/src/caiprofileplugin.cpp	Wed Oct 13 14:53:46 2010 +0300
@@ -263,6 +263,18 @@
         		}
         	}
 
+		// in case of Offline profile profile indicator is not shown
+        if ( observer->CanPublish( *this, EAiProfileContentActiveProfileName, EAiProfileContentActiveProfileName ) &&
+        		iEngine->IsOffline() )
+        	{
+    		observer->Clean( *this, EAiProfileActiveProfileSilentChar, EAiProfileActiveProfileSilentChar );
+    		observer->Clean( *this, EAiProfileActiveProfileIcon, 1 );
+    		observer->Clean( *this, EAiProfileActiveProfileIcon, 2 );
+            
+    		// uncomment also this and respective policy lines in profiles.xml if whole widget needs to be hidden in AI3 
+    		//observer->Clean( *this, EAiProfileContentActiveProfileName, EAiProfileContentActiveProfileName );        		    		
+    		}
+        
         if ( err == KErrNone )
             {
             err = observer->Commit( transactionId );