summaryrefslogtreecommitdiffstats
path: root/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-06-08 11:36:01 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-06-08 11:36:01 +0200
commit5bcbbdcbf914637b6d044c652b818b0e2c07f5c5 (patch)
tree8224a5d489c8dc889e4e648cacbac206d6933790 /updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java
parentSnap for 4821358 from 31b994e8e93e04e29f59ac98e845b42750668178 to qt-release (diff)
parentMerge "updater_sample: update README.md" am: 1cb7222784 am: fc824cb998 (diff)
downloadandroid_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.tar
android_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.tar.gz
android_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.tar.bz2
android_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.tar.lz
android_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.tar.xz
android_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.tar.zst
android_bootable_recovery-5bcbbdcbf914637b6d044c652b818b0e2c07f5c5.zip
Diffstat (limited to 'updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java')
-rw-r--r--updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java b/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java
index 573d336e9..4eb0b68c7 100644
--- a/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java
+++ b/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java
@@ -52,12 +52,12 @@ public class UpdaterState {
*/
private static final ImmutableMap<Integer, ImmutableSet<Integer>> TRANSITIONS =
ImmutableMap.<Integer, ImmutableSet<Integer>>builder()
- .put(IDLE, ImmutableSet.of(ERROR, RUNNING))
+ .put(IDLE, ImmutableSet.of(IDLE, ERROR, RUNNING))
+ .put(ERROR, ImmutableSet.of(IDLE))
.put(RUNNING, ImmutableSet.of(
- ERROR, PAUSED, REBOOT_REQUIRED, SLOT_SWITCH_REQUIRED))
+ IDLE, ERROR, PAUSED, REBOOT_REQUIRED, SLOT_SWITCH_REQUIRED))
.put(PAUSED, ImmutableSet.of(ERROR, RUNNING, IDLE))
- .put(SLOT_SWITCH_REQUIRED, ImmutableSet.of(ERROR, IDLE))
- .put(ERROR, ImmutableSet.of(IDLE))
+ .put(SLOT_SWITCH_REQUIRED, ImmutableSet.of(ERROR, REBOOT_REQUIRED, IDLE))
.put(REBOOT_REQUIRED, ImmutableSet.of(IDLE))
.build();