Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private float getDegreesForRotation(int value) {
- if (System.getProperty("ro.sf.hwrotation","0").equals("180){
- switch(value){
- case Surface.ROTATION_90:
- return 360f - 90f;
- case Surface.ROTATION_180:
- return 0f;
- case Surface.ROTATION_270:
- return 360f - 270f;
- }
- return 360f - 180f;
- }
- }else{
- switch(value){
- case Surface.ROTATION_90:
- return 360f - 90f;
- case Surface.ROTATION_180:
- return 360f - 180f;
- case Surface.ROTATION_270:
- return 360f - 270f;
- }
- }
- return 0f;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement