OSDN Git Service

Fixes issue where the notification menu was not visible after RTL changes
authorMady Mellor <madym@google.com>
Wed, 5 Apr 2017 01:45:30 +0000 (18:45 -0700)
committerMady Mellor <madym@google.com>
Tue, 2 May 2017 21:25:56 +0000 (14:25 -0700)
commit9d03a5254f5c7ac00071d56b91ddc15a3d761ed6
treef09018d75783830f3aa2da312123537c8e8aac4c
parentc6d132c11db904238302b7d2199fa2d9995e8390
Fixes issue where the notification menu was not visible after RTL changes

- Altered how the menu location is set so that it doesn't depend on RTL
  state
- Also fixes an issue where if you change from landscape to portrait or
  vice versa then the menu wouldn't be visible because the placement is
  based on the width of the notification which changes based on orientation

Test: (1) have notifications and show the menu, toggle the RTL state,
          show the menu, note that it is visible
      (2) have notifications and show the menu, rotate the device, note
          that the menu is still visible
Fixes: 36874498
Change-Id: I3a3b688f2b301f5ac0446a55b668db79c323a95c
packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/NotificationMenuRowPlugin.java
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java