Loading src/com/android/deskclock/AlarmClockFragment.java +12 −1 Original line number Diff line number Diff line Loading @@ -1070,8 +1070,13 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements } public void setNewAlarm(long alarmId) { if (mExpandedId != alarmId) { if (mExpandedItemHolder != null) { collapseAlarm(mExpandedItemHolder, true); } mExpandedId = alarmId; } } /** * Expands the alarm for editing. Loading Loading @@ -1112,6 +1117,9 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements if (!animate) { // Set the "end" layout and don't do the animation. itemHolder.arrow.setRotation(ROTATE_180_DEGREE); itemHolder.summary.setVisibility(View.GONE); itemHolder.hairLine.setVisibility(View.GONE); itemHolder.delete.setVisibility(View.VISIBLE); return; } Loading Loading @@ -1228,6 +1236,9 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements // Set the "end" layout and don't do the animation. itemHolder.arrow.setRotation(0); itemHolder.hairLine.setTranslationY(0); itemHolder.hairLine.setVisibility(View.VISIBLE); itemHolder.summary.setAlpha(1); itemHolder.summary.setVisibility(View.VISIBLE); return; } Loading Loading
src/com/android/deskclock/AlarmClockFragment.java +12 −1 Original line number Diff line number Diff line Loading @@ -1070,8 +1070,13 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements } public void setNewAlarm(long alarmId) { if (mExpandedId != alarmId) { if (mExpandedItemHolder != null) { collapseAlarm(mExpandedItemHolder, true); } mExpandedId = alarmId; } } /** * Expands the alarm for editing. Loading Loading @@ -1112,6 +1117,9 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements if (!animate) { // Set the "end" layout and don't do the animation. itemHolder.arrow.setRotation(ROTATE_180_DEGREE); itemHolder.summary.setVisibility(View.GONE); itemHolder.hairLine.setVisibility(View.GONE); itemHolder.delete.setVisibility(View.VISIBLE); return; } Loading Loading @@ -1228,6 +1236,9 @@ public abstract class AlarmClockFragment extends DeskClockFragment implements // Set the "end" layout and don't do the animation. itemHolder.arrow.setRotation(0); itemHolder.hairLine.setTranslationY(0); itemHolder.hairLine.setVisibility(View.VISIBLE); itemHolder.summary.setAlpha(1); itemHolder.summary.setVisibility(View.VISIBLE); return; } Loading