14701 Commits

Author SHA1 Message Date
Adrian Roos
237ffa48d0 Fix BigText transitions
Fixes a bug where BigText would never transition
between the expanded and collapsed version because
padding was wrongly taken into account when checking
the view height.

Change-Id: I4df242b4133dacdff77b78cc2d4ff3954b75b8a7
Fixes: 29042222
2016-06-02 13:16:30 -07:00
TreeHugger Robot
d05a7b5972 Merge "Radio buttons belong in a radio group." into nyc-dev 2016-06-01 18:01:35 +00:00
Jason Monk
4215ae0100 Merge "QS: Fix single expanded frame from layout" into nyc-dev 2016-06-01 17:26:53 +00:00
Jason Monk
1ceef7c0fa Merge "QS: Followup to scroll fixes" into nyc-dev 2016-06-01 17:20:17 +00:00
Jason Monk
8768f68713 Merge "QS: Only put visible tiles in listening state" into nyc-dev 2016-06-01 17:04:26 +00:00
Jason Monk
7b945d8d30 Merge "QS: Protect against crash with no icon" into nyc-dev 2016-06-01 17:04:21 +00:00
Mady Mellor
0d7dbb0f28 Merge "Adds alpha to dimmed backgrounds" into nyc-dev 2016-06-01 16:53:50 +00:00
Julia Reynolds
656f98681e Radio buttons belong in a radio group.
Fix for 'multiple buttons selected at once' issue.

Change-Id: Iec54eac699886ed1c7b8afd91382ff9b5750c696
Fixes: 27698976
2016-06-01 12:37:13 -04:00
Jason Monk
f50e88227d QS: Fix single expanded frame from layout
During animation it was resetting the QS expansion on layout which
made a frame of fully expanded appear.

Bug: 28008271
Change-Id: I6ac44cb918bdf53da0653332eabf0f4e96779cff
2016-06-01 11:19:26 -04:00
Jason Monk
e19cc141c3 QS: Protect against crash with no icon
Change-Id: I65d594c9bf15190418d96cc6d2c426df00fed212
Fixes: 28941131
2016-06-01 10:25:01 -04:00
Bill Yi
3fb5d5249d Import translations. DO NOT MERGE
Change-Id: I95a9ffff8b53c291bd9eb314641b310c4ca1cbad
Auto-generated-cl: translation import
2016-06-01 01:51:04 -07:00
Jorim Jaggi
0c54d2c391 Merge "Fix multi-window enter animation" into nyc-dev 2016-05-31 20:08:50 +00:00
Jason Monk
e5107a36b0 QS: Only put visible tiles in listening state
- Make it so the QSPanel doesn't listen until expansion starts
 - Push listening state through the TileLayout
 - Make PagedTileLayout only listen for visible pages
 - Push setListening onto background thread

Change-Id: Id7c008c9447f9a5dac69469fef72bc580f423b0c
Fixes: 28962155
2016-05-31 15:49:35 -04:00
Selim Cinek
ddc6de1eda Merge "Fixed a few accessibility issues with notifications and groups" into nyc-dev 2016-05-31 19:26:16 +00:00
Jason Monk
35742d8c31 QS: Followup to scroll fixes
Change-Id: Icfa8f9e7c2cc563dd1496049b82e4cdb4c4fc922
Fixes: 28671167
2016-05-31 10:30:46 -04:00
Winson Chung
8a9100caae Merge "Tweaking layout to make two-task stacks to closer match design." into nyc-dev 2016-05-28 00:07:47 +00:00
Selim Cinek
ddf1b399d8 Fixed a few accessibility issues with notifications and groups
Change-Id: I78fa62884eaa0efe825b5eb1e6cac7d88fc05a7f
Fixes: 28069681
2016-05-27 17:04:56 -07:00
Jorim Jaggi
e525a35704 Fix multi-window enter animation
Stable insets are not calculated in the first pass, so fetch it
manually if needed to avoid a relayout.

Bug: 28705801
Change-Id: I8f9a3bab96b597a80963d7ebcc8b19454b3e45a6
2016-05-27 23:58:20 +00:00
Adrian Roos
e3e80bde12 Merge "Fix status bar autohide with DirectReply" into nyc-dev 2016-05-27 22:55:00 +00:00
Winson
399d21e37c Tweaking layout to make two-task stacks to closer match design.
- In the small-stack cases, set the initial state to top-align the
  back-most task.  In addition to offsetting the position, ensure that
  the dim for the back-most task is offset by this new position.
- Fixing issue with wrong return value when update insets.
- Fixing issue where tasks disappear after rotating while scrolling the
  stack, due to the scrollering setting the stack scroll to an invalid
  scroll position in the new layout in the new orientation.

Bug: 27859654
Change-Id: Ia4aaa3fe445032493c94a8dee7f6fea33bee36ec
2016-05-27 15:30:06 -07:00
Adrian Roos
e88f60b8bb Merge "NotificationStackScroller: Fix scrollTo for notification groups" into nyc-dev 2016-05-27 21:18:57 +00:00
Adrian Roos
06fe24341c Merge "Notification: Fix bug with sliding action list" into nyc-dev 2016-05-27 21:17:27 +00:00
Jorim Jaggi
a6c05d5151 Fix weirdness when home task forces rotation
- Make sure to retain the state when divider goes through a configuration
change in order to avoid that nothing happens when entering multi-window.
Save the state in DividerState and use a handler that's independant of the
attached state.
- Don't allow home task to dictate orientation unless the docked stack is
minimized. This caused a lot of weird bugs because when docking a task,
home stack gets moved to front, and if home task is front of stack, it
temporarily might dictate the rotation but later not anymore so this
causes two rapid configuration changes which may cause a lot of weirdness.

Change-Id: I6a2308af893cd8413ee8801e5b964f6ddc0abd51
Fixes: 28943853
2016-05-27 21:09:22 +00:00
Selim Cinek
2fba229166 Merge "Fixed a bug where a notification could be stuck in the overlay" into nyc-dev 2016-05-27 20:47:07 +00:00
Adrian Roos
5e47645f6d Fix status bar autohide with DirectReply
If a touch outside the status bar window is detected
we schedule autohiding the status bar - which is wrong
when that touch is due to touching the IME for DirectReply.

Bug: 28914905
Change-Id: Ic86612192368181f195fa54ac4f20edaf02af685
2016-05-27 12:07:37 -07:00
Selim Cinek
4f401f24c7 Merge "Fixed a few memory leaks in SystemUI" into nyc-dev 2016-05-27 18:58:56 +00:00
Selim Cinek
f55f1bcb94 Fixed a bug where a notification could be stuck in the overlay
Change-Id: Idf07b1948b9baeff095fbeccd417cdad1e81e7f8
Fixes: 28992452
2016-05-27 11:19:11 -07:00
Mady Mellor
c7d65b4e9c Adds alpha to dimmed backgrounds
If you're on the lock screen and a child background needs
to be shown (e.g. custom background and user expanding) the
background should fade in from 0 alpha otherwise looks odd
visually.

Bug: 27591195
Change-Id: I1f46831fd8b46eca5b54e7bd964af35752c4fa2f
2016-05-27 10:36:55 -07:00
Jae Seo
f8c504db7f Merge "PIP: Improve PIP control row's focus change animation in Recents" into nyc-dev 2016-05-27 17:23:58 +00:00
Jason Monk
4f620d423f Merge "QS: Handle detail scroll properly" into nyc-dev 2016-05-27 16:51:48 +00:00
TreeHugger Robot
cd9ea74659 Merge "add metrics for gestural notification expansions" into nyc-dev 2016-05-27 16:49:58 +00:00
Julia Reynolds
d8834773eb Announce upcoming tile state on click.
Change-Id: Ib804b5db13bbee07c6d45e8aa077cac60e28efb2
Fixes: 28964765
2016-05-27 11:01:55 -04:00
Jason Monk
0215802097 QS: Handle detail scroll properly
Add custom scrollview that ensures the touches can cause a scroll.

Change-Id: Ib18ac24ded11d06f59f582248964bd697652c192
Fixes: 28671167
2016-05-27 10:47:51 -04:00
Jaewan Kim
a9e0621f33 PIP: Improve PIP control row's focus change animation in Recents
This includes following changes for performance
1. Passes the key events directly between the windows instead of using
   dummy Views and OnFocusChangeListener to prevent main thread from
   handling unnecessary focus changes.
2. Limits the window size for PIP controls to reduce unnecessary draw.

Here's the test result. Test is performed with paused PIP video
1. 5 visible recents task
  Focus down: 48.14 fps -> 85.396 fps (+77.39%)
  Focus up: 24.67 fps -> 45.33 fps (+83.77%)
2. 3 visible recents task
  Focus down: 51.98 fps -> 132.72 fps (+155.34%)
  Focus up: 30.91 fps -> 53.38 fps (+72.69%)

Bug: 28042495
Change-Id: I363232176975b160e122748c9997ef4b46b73a28
2016-05-27 08:41:48 +00:00
TreeHugger Robot
386a947616 Merge "Prevent setting the launch task id when docking." into nyc-dev 2016-05-27 03:30:47 +00:00
Adrian Roos
a8e18ef911 Fix spurious crashes in StatusBarIconView
Fixes a crash that happens when we cannot look up a package's
resources for reasons.

Change-Id: I4884536a3eefa8fe82bd274925241f4c798e08e3
Fixes: 28982204
2016-05-26 17:57:25 -07:00
Selim Cinek
f1614a6ec2 Fixed a few memory leaks in SystemUI
Fist of all we made the statemap a weak hashmap in order never
to leak any views anymore.

Another leak could occur because predrawlisteners were added twice
but removal only removes one. A view was then leaked in case it was detached
before predraw.

Also fixed a leak when transforming the header because a state wasn't
nulled.

Change-Id: I2573a506c307196ef60c905dc823ea8a95e91a16
Fixes: 28945863
2016-05-26 17:52:03 -07:00
Winson
c4a038ad28 Prevent setting the launch task id when docking.
- In this case, recents is the last running task instead of the 
  previously fullscreen app (likely due to some preparation for the 
  docking), and we should not set the task to launch/cancel window 
  transitions for.

Bug: 28943422
Change-Id: I3c381d3fa33a69adb7d8b606633433a898841526
2016-05-26 23:51:40 +00:00
Adrian Roos
4a57967650 NotificationStackScroller: Fix scrollTo for notification groups
Change-Id: Iab101d7583e9849809058c96f0c480ea9b5cc0f5
Fixes: 28936844
2016-05-26 15:44:40 -07:00
Chris Wren
6abeeb9119 add metrics for gestural notification expansions
Bug: 28146482
Change-Id: If202846c0d235830c7b41d76b55bdcc21d0ab90d
2016-05-26 17:20:33 -04:00
Winson Chung
814358a24f Merge "Fixing crash in SysUI due to invalid group." into nyc-dev 2016-05-26 20:39:28 +00:00
Winson
8a3ef375ee Fixing crash in SysUI due to invalid group.
- Adding a null check for tasks that have already been removed, but may
  be launched.

Bug: 28890599
Change-Id: Idde322c737a5543e639e693fbe7615e720a12c1e
2016-05-26 19:57:44 +00:00
Winson
6c8217ab30 Defer calling the stack task removed callbacks.
- When updating a TaskStack, defer calling any callbacks until the stack
  is updated.  Otherwise, the handler may incorrectly check the size of
  the stack to be empty, which triggers Recents to go home.
- This CL also removes an erroneous double call to onStackTaskRemoved()
  when updating, one explicit call and the call that is made internally
  in removeTask().

Bug: 28941269
  

Change-Id: I37b93bd959a625096925a16a426269a0c79de4e7
2016-05-26 19:57:34 +00:00
Adrian Roos
bb73e9c65a Notification: Fix bug with sliding action list
Fixes a bug where the action bar was not where it
was supposed to be if the expanded notification
was smaller than the collapsed + action height.

Bug: 28767094
Change-Id: I30c0ae430d4d5f9e88a02f5143094e90cf31b620
2016-05-26 12:06:46 -07:00
Julia Reynolds
d52a81eeae Merge "Reset slider animator on density change" into nyc-dev 2016-05-26 18:46:10 +00:00
Julia Reynolds
5774cf08de Reset slider animator on density change
Change-Id: Iae7d32746c6ea2cabe7d0d58ff11a05d1722fce4
Fixes: 28626591
2016-05-26 13:43:38 -04:00
Julia Reynolds
2bf73e94c3 Merge "Importance slider updates." into nyc-dev 2016-05-26 16:50:58 +00:00
Jason Monk
72f19ff6f0 Merge "QS: Make hotspot go unavailable in airplane mode" into nyc-dev 2016-05-26 16:46:48 +00:00
TreeHugger Robot
0f97b8fcbd Merge "add metrics for notification and group expansion" into nyc-dev 2016-05-26 16:35:29 +00:00
Julia Reynolds
3aa969f68d Importance slider updates.
Icon & tint.

Bug: 28911161
Change-Id: Id8c3a4b79326eb5073a600de49ac14ae7223b398
2016-05-26 11:07:49 -04:00