Loading packages/SystemUI/src/com/android/keyguard/clock/ImageClock.java +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ public class ImageClock extends FrameLayout { */ public void onTimeChanged() { mTime.setTimeInMillis(System.currentTimeMillis()); final float hourAngle = mTime.get(Calendar.HOUR) * 30f; final float hourAngle = mTime.get(Calendar.HOUR) * 30f + mTime.get(Calendar.MINUTE) * 0.5f; mHourHand.setRotation(hourAngle); final float minuteAngle = mTime.get(Calendar.MINUTE) * 6f; mMinuteHand.setRotation(minuteAngle); Loading packages/SystemUI/src/com/android/keyguard/clock/StretchAnalogClock.java +2 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,8 @@ public class StretchAnalogClock extends View { final float centerY = getHeight() / 2f; final float minutesRotation = mTime.get(Calendar.MINUTE) * 6f; final float hoursRotation = (mTime.get(Calendar.HOUR) * 30); final float hoursRotation = mTime.get(Calendar.HOUR) * 30 + mTime.get(Calendar.MINUTE) * 0.5f; // Compute length of clock hands. Hour hand is 60% the length from center to edge // and minute hand is twice the length to make sure it extends past screen edge. Loading Loading
packages/SystemUI/src/com/android/keyguard/clock/ImageClock.java +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ public class ImageClock extends FrameLayout { */ public void onTimeChanged() { mTime.setTimeInMillis(System.currentTimeMillis()); final float hourAngle = mTime.get(Calendar.HOUR) * 30f; final float hourAngle = mTime.get(Calendar.HOUR) * 30f + mTime.get(Calendar.MINUTE) * 0.5f; mHourHand.setRotation(hourAngle); final float minuteAngle = mTime.get(Calendar.MINUTE) * 6f; mMinuteHand.setRotation(minuteAngle); Loading
packages/SystemUI/src/com/android/keyguard/clock/StretchAnalogClock.java +2 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,8 @@ public class StretchAnalogClock extends View { final float centerY = getHeight() / 2f; final float minutesRotation = mTime.get(Calendar.MINUTE) * 6f; final float hoursRotation = (mTime.get(Calendar.HOUR) * 30); final float hoursRotation = mTime.get(Calendar.HOUR) * 30 + mTime.get(Calendar.MINUTE) * 0.5f; // Compute length of clock hands. Hour hand is 60% the length from center to edge // and minute hand is twice the length to make sure it extends past screen edge. Loading