Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_DeskClock
Commits
9951f6f4
Commit
9951f6f4
authored
9 years ago
by
James Lemieux
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Fix creation of first timer via voice" into ub-deskclock-dazzle
parents
750bf029
bdcbdd7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/com/android/deskclock/timer/TimerFragment.java
src/com/android/deskclock/timer/TimerFragment.java
+8
-3
src/com/android/deskclock/timer/TimerSetupView.java
src/com/android/deskclock/timer/TimerSetupView.java
+1
-1
No files found.
src/com/android/deskclock/timer/TimerFragment.java
View file @
9951f6f4
...
...
@@ -160,16 +160,21 @@ public class TimerFragment extends DeskClockFragment {
intent
.
removeExtra
(
HandleDeskClockApiCalls
.
EXTRA_TIMER_ID
);
}
// Either show the view for creating timers or the view of existing timers.
if
(!
hasTimers
()
||
createTimer
||
mTimerSetupState
!=
null
)
{
// Choose the view to display in this fragment.
if
(
showTimerId
!=
-
1
)
{
// A specific timer must be shown; show the list of timers.
showTimersView
();
}
else
if
(!
hasTimers
()
||
createTimer
||
mTimerSetupState
!=
null
)
{
// No timers exist, a timer is being created, or the last view was timer setup;
// show the timer setup view.
showCreateTimerView
();
// If initial state of the timer setup view exists, set it now.
if
(
mTimerSetupState
!=
null
)
{
mCreateTimerView
.
setState
(
mTimerSetupState
);
mTimerSetupState
=
null
;
}
}
else
{
// Otherwise, default to showing the list of timers.
showTimersView
();
}
...
...
This diff is collapsed.
Click to expand it.
src/com/android/deskclock/timer/TimerSetupView.java
View file @
9951f6f4
...
...
@@ -201,7 +201,7 @@ public class TimerSetupView extends LinearLayout implements Button.OnClickListen
}
/**
* @return an opaque representation of the state of timer setup
.
* @return an opaque representation of the state of timer setup
*/
public
Serializable
getState
()
{
return
Arrays
.
copyOf
(
mInput
,
mInput
.
length
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment