MOSYNC-3327. Adjusted android orientation mechanism.