commit | 0e6ea2f549bca92450690a19cda450804b56c073 | [log] [tgz] |
---|---|---|
author | Chris.CC Lee <chriscclee@google.com> | Tue Nov 26 18:57:30 2019 +0800 |
committer | Lucas Dupin <dupin@google.com> | Mon Dec 02 17:13:28 2019 +0000 |
tree | 9fac971896946683077d95a1183a0f5abb97d218 | |
parent | f998947a6f954bb7a224ee32d193e3ba6a7ecacf [diff] |
There should be an UNKNOWN state to handle more conditions Driver could report error while calculating alignment conditions. Test: make Bug: b/144822861 Bug: b/144905377 Change-Id: Ic184b8f30c9e40c14e6edf92cc63b5b2a82be68d Merged-In: Ic184b8f30c9e40c14e6edf92cc63b5b2a82be68d
diff --git a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java index 42e065a..4ee2ed3 100644 --- a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java +++ b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java
@@ -35,6 +35,12 @@ int STATE_DOCKED_HIDE = 2; /** + * Indicates there's no alignment info. This could happen when the device is unable to decide + * its alignment condition. + */ + int ALIGN_STATE_UNKNOWN = -1; + + /** * Indicates there's no alignment issue. */ int ALIGN_STATE_GOOD = 0;