Skip to content

Commit

Permalink
SF: Ensure boot animation always appears in panel orientation
Browse files Browse the repository at this point in the history
Ensure that boot animation is always shown in panel
orientation.

Change-Id: I36a75ba5aea803a7b7cace3335a0d7f730612c5d
CRs-Fixed: 604934
  • Loading branch information
radhakrishna authored and hyperb1iss committed Jul 14, 2014
1 parent 2326d76 commit bc9ad36
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions services/surfaceflinger/SurfaceFlinger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1504,13 +1504,24 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
|| (state.frame != draw[i].frame))
{
// Honor the orientation change after boot
// animation completes or the new orientation is
// same as panel orientation..
if(mBootFinished ||
state.orientation == disp->getOrientation()) {
// animation completes and make sure boot
// animation is shown in panel orientation always.
if(mBootFinished){
disp->setProjection(state.orientation,
state.viewport, state.frame);
}
else{
char property[PROPERTY_VALUE_MAX];
int panelOrientation =
DisplayState::eOrientationDefault;
if(property_get("persist.panel.orientation",
property, "0") > 0){
panelOrientation = atoi(property) / 90;
}
disp->setProjection(panelOrientation,
state.viewport, state.frame);

}
}
}
}
Expand Down

0 comments on commit bc9ad36

Please sign in to comment.