equal
deleted
inserted
replaced
387 // From MSwtScreen |
387 // From MSwtScreen |
388 // --------------------------------------------------------------------------- |
388 // --------------------------------------------------------------------------- |
389 // |
389 // |
390 void CSwtScreen::SetOrientationL(TInt aOrientation) |
390 void CSwtScreen::SetOrientationL(TInt aOrientation) |
391 { |
391 { |
|
392 // Checks whether some component fixed the screen orientation |
|
393 if (iDisplay.UiUtils().IsScreenOrientationFixed()) |
|
394 { |
|
395 User::Leave(ESwtErrorCannotSetSelection); |
|
396 } |
|
397 |
392 iOrientation = aOrientation; |
398 iOrientation = aOrientation; |
393 if (IsScreenOn()) |
399 if (IsScreenOn()) |
394 { |
400 { |
395 // Do not change instruction order! |
401 // Do not change instruction order! |
396 iOrientationState = EOrientationSet; |
402 iOrientationState = EOrientationSet; |