--- a/application/src/PodcastListView.cpp Thu Jul 22 16:28:57 2010 +0100
+++ b/application/src/PodcastListView.cpp Thu Jul 22 16:50:37 2010 +0100
@@ -98,12 +98,26 @@
void CPodcastListContainer::HandleResourceChange(TInt aType)
{
- switch( aType )
- {
- case KEikDynamicLayoutVariantSwitch:
- SetRect(iEikonEnv->EikAppUi()->ClientRect());
- break;
- }
+ CCoeControl::HandleResourceChange(aType);
+ if ( aType==KEikDynamicLayoutVariantSwitch )
+ {
+ TRect rect;
+ AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect);
+ SetRect( rect );
+
+ if ( iBgContext )
+ {
+ iBgContext->SetRect( rect );
+ }
+ DrawNow();
+ }
+//
+// switch( aType )
+// {
+// case KEikDynamicLayoutVariantSwitch:
+// SetRect(iEikonEnv->EikAppUi()->ClientRect());
+// break;
+// }
}
void CPodcastListContainer::ScrollToVisible() {
@@ -241,6 +255,7 @@
( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
titlePane->SetTextToDefaultL();
+ iListContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
DP("CPodcastListView::DoActivateL() END");
}