258 //AppShell doesn't currently provide option to send cmdline parameter, so we need |
258 //AppShell doesn't currently provide option to send cmdline parameter, so we need |
259 //proactively be prepared to provide AppListView if activated later from AppShell. |
259 //proactively be prepared to provide AppListView if activated later from AppShell. |
260 //This is needed if we lose foreground and later gain it from AppShell to AppListView. |
260 //This is needed if we lose foreground and later gain it from AppShell to AppListView. |
261 //Because of EMSH-6JDFBV it's also better not try do the below in HandleLosingForeground() |
261 //Because of EMSH-6JDFBV it's also better not try do the below in HandleLosingForeground() |
262 //so we need to accept a minor performance penalty of executing the below already here. |
262 //so we need to accept a minor performance penalty of executing the below already here. |
263 if( ! View( TUid::Uid( ELogAppListViewId ) ) ) |
263 if( ! View( TUid::Uid( ELogAppListViewId ) ) && !FeatureManager::FeatureSupported( KFeatureIdSimpleLogs ) ) |
264 { |
264 { |
265 CAknView* logsView = CLogsAppListView::NewL(); |
265 CAknView* logsView = CLogsAppListView::NewL(); |
266 CleanupStack::PushL(logsView); |
266 CleanupStack::PushL(logsView); |
267 AddViewL( logsView ); //takes ownership |
267 AddViewL( logsView ); //takes ownership |
268 CleanupStack::Pop(logsView); |
268 CleanupStack::Pop(logsView); |
|
269 } |
|
270 else if ( ! View( TUid::Uid( ELogSubAppListViewId ) ) && FeatureManager::FeatureSupported( KFeatureIdSimpleLogs ) ) |
|
271 { |
|
272 // When simple mode enabled, provide SubAppListView here. |
|
273 CAknView* logsView = CLogsSubAppListView::NewL(); |
|
274 CleanupStack::PushL(logsView); |
|
275 AddViewL( logsView ); //takes ownership |
|
276 CleanupStack::Pop(logsView); |
269 } |
277 } |
270 |
278 |
271 TRACE_EXIT_POINT; |
279 TRACE_EXIT_POINT; |
272 } |
280 } |
273 |
281 |
687 // This handling prevents errors like MMAN-6VADLV or MMHI-6V7ABV. |
695 // This handling prevents errors like MMAN-6VADLV or MMHI-6V7ABV. |
688 // |
696 // |
689 if (ExecutionMode() == ELogsInBackground_ExitOrEndPressed && ResetViewOnFocusRegain()) |
697 if (ExecutionMode() == ELogsInBackground_ExitOrEndPressed && ResetViewOnFocusRegain()) |
690 { |
698 { |
691 SetResetViewOnFocusRegain(EFalse); // prevent further view switches |
699 SetResetViewOnFocusRegain(EFalse); // prevent further view switches |
692 ActivateLogsViewL(ELogAppListViewId); |
700 if ( FeatureManager::FeatureSupported( KFeatureIdSimpleLogs ) ) |
|
701 { |
|
702 ActivateLogsViewL( ELogSubAppListViewId ); |
|
703 } |
|
704 else |
|
705 { |
|
706 ActivateLogsViewL( ELogAppListViewId ); |
|
707 } |
693 } |
708 } |
694 |
709 |
695 CAknAppUi::HandleWsEventL( aEvent, aDestination ); |
710 CAknAppUi::HandleWsEventL( aEvent, aDestination ); |
696 break; |
711 break; |
697 } |
712 } |