uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp
changeset 50 c6286dcf6040
parent 1 ba33815114d6
child 78 0b86c25b743a
equal deleted inserted replaced
43:1951b3078691 50:c6286dcf6040
    51         }
    51         }
    52 
    52 
    53     TInt type = aLoader->IconTypeL( aParams.iBitmapId );
    53     TInt type = aLoader->IconTypeL( aParams.iBitmapId );
    54     
    54     
    55 #ifdef _NGATESTING        
    55 #ifdef _NGATESTING        
    56     type = aLoader->GetDerivedIconTypeL(type, aParams.iFileName);
    56     type = aLoader->GetDerivedIconTypeL(type);
    57 #endif
    57 #endif
    58     
    58     
    59     // Check if handler is already present, if so then return with same pointer
    59     // Check if handler is already present, if so then return with same pointer
    60     for ( TInt lIndex = 0; lIndex < aHandlerList.Count(); lIndex++ )
    60     for ( TInt lIndex = 0; lIndex < aHandlerList.Count(); lIndex++ )
    61         {
    61         {
    89         {
    89         {
    90         User::Leave( KAknIconSrvCodeAnimated );
    90         User::Leave( KAknIconSrvCodeAnimated );
    91         }
    91         }
    92 
    92 
    93     TInt type = aLoader->IconTypeL( aIconId );
    93     TInt type = aLoader->IconTypeL( aIconId );
    94 
    94 #ifdef _NGATESTING        
       
    95     type = aLoader->GetDerivedIconTypeL(type);
       
    96 #endif
    95     if ( !aHandler )
    97     if ( !aHandler )
    96         {
    98         {
    97         aHandler = AknIconFormatHandlerFactory::NewIconFormatHandlerL( type );
    99         aHandler = AknIconFormatHandlerFactory::NewIconFormatHandlerL( type );
    98         aHandler->SetAnimated( aAnimated );
   100         aHandler->SetAnimated( aAnimated );
    99         }
   101         }