securitydialogs/Autolock/src/AutolockAppUi.cpp
branchRCL_3
changeset 46 94b923fa11ed
parent 36 2ca12c9f635b
child 47 63339781d179
equal deleted inserted replaced
36:2ca12c9f635b 46:94b923fa11ed
   990 	if (!iAppKey)
   990 	if (!iAppKey)
   991 		{
   991 		{
   992 		RWindowGroup& groupWin=iCoeEnv->RootWin();
   992 		RWindowGroup& groupWin=iCoeEnv->RootWin();
   993 		iAppKey = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication0, 0, 0); // Capture app key
   993 		iAppKey = groupWin.CaptureKeyUpAndDowns(EStdKeyApplication0, 0, 0); // Capture app key
   994 		}
   994 		}
       
   995 	// Any orientation change is a waste of battery and triggers unnecesary window events and paining.
       
   996 	// Not only that: in landscape the BigRedButton is too small.
       
   997 	// Therefore we always stay in portrait. The icon looks much nicer.
       
   998 	SetOrientationL( EAppUiOrientationPortrait );
   995 	LockSideKeyL();
   999 	LockSideKeyL();
   996 	}
  1000 	}
   997 // ----------------------------------------------------
  1001 // ----------------------------------------------------
   998 // CAutolockAppUi::UnLockKeys()
  1002 // CAutolockAppUi::UnLockKeys()
   999 // unlocks keys 
  1003 // unlocks keys