Instead of determining the device orientation based on the layer orientation, use the value which comes from the framework CRs-fixed: 382796 Change-Id: I83e87534fbfc62740a411f1324b2c12e88434b41