diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-05-30 15:02:59 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-30 15:02:59 -0700 |
| commit | bbffc261cc3607d03c12227cdd3f78a4f4e28e1a (patch) | |
| tree | bc6bd16901f1964f79fe875f869a1e7ea06194a1 /services/java/com/android/server/wm/WindowManagerService.java | |
| parent | 6ac15eeb8a88e0b0a7c81e8b8ec6b07099fddbc5 (diff) | |
| parent | 9154b877807a1222abf46608cdff66428e906328 (diff) | |
| download | frameworks_base-bbffc261cc3607d03c12227cdd3f78a4f4e28e1a.zip frameworks_base-bbffc261cc3607d03c12227cdd3f78a4f4e28e1a.tar.gz frameworks_base-bbffc261cc3607d03c12227cdd3f78a4f4e28e1a.tar.bz2 | |
am 9154b877: Merge "Fix comparison of device source bits." into jb-dev
* commit '9154b877807a1222abf46608cdff66428e906328':
Fix comparison of device source bits.
Diffstat (limited to 'services/java/com/android/server/wm/WindowManagerService.java')
| -rwxr-xr-x | services/java/com/android/server/wm/WindowManagerService.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 4ce8c97..10919f2 100755 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -6466,17 +6466,18 @@ public class WindowManagerService extends IWindowManager.Stub WindowManagerPolicy.PRESENCE_INTERNAL; if (mIsTouchDevice) { - if ((sources & InputDevice.SOURCE_TOUCHSCREEN) != 0) { + if ((sources & InputDevice.SOURCE_TOUCHSCREEN) == + InputDevice.SOURCE_TOUCHSCREEN) { config.touchscreen = Configuration.TOUCHSCREEN_FINGER; } } else { config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; } - if ((sources & InputDevice.SOURCE_TRACKBALL) != 0) { + if ((sources & InputDevice.SOURCE_TRACKBALL) == InputDevice.SOURCE_TRACKBALL) { config.navigation = Configuration.NAVIGATION_TRACKBALL; navigationPresence |= presenceFlag; - } else if ((sources & InputDevice.SOURCE_DPAD) != 0 + } else if ((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD && config.navigation == Configuration.NAVIGATION_NONAV) { config.navigation = Configuration.NAVIGATION_DPAD; navigationPresence |= presenceFlag; |
