diff options
| author | 2019-11-26 18:57:30 +0800 | |
|---|---|---|
| committer | 2019-11-27 18:35:28 +0800 | |
| commit | aa2004b4362a67be9d29ebab15c93eb77a7376b2 (patch) | |
| tree | 78fabf6d7ea7e58d583d02b9832d7a50e6b1116c | |
| parent | 75275ad59c7176c784edefc2d4aac98bd193116d (diff) | |
There should be an UNKNOWN state to handle more conditions
Driver could report error while calculating alignment conditions.
Test: make
Change-Id: Ic184b8f30c9e40c14e6edf92cc63b5b2a82be68d
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/dock/DockManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java index c7637fb42889..b6f7cd04c75f 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 @@ public interface DockManager { 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; |