Commit Graph

13448 Commits

Author SHA1 Message Date
Selim Cinek
8f2f6a67fa Transforming notifications now based on the user dragging
The animation is not a canned animation anymore but base on
the finger movement of the user.

Bug: 19437552
Change-Id: I0f81ac2ff05a92673e3f3b9b72a5c2de238890d0
2016-02-25 11:02:30 -08:00
Selim Cinek
f1015dbe97 Adapted the lockscreen style
It's that time of the release again.

Bug: 24866646
Change-Id: Iebfae2f2cc6b5a21b7b98df359de2247b2bc8632
2016-02-23 17:56:22 -08:00
Selim Cinek
84e6de7778 Fixed a bug where QS could fling up even when collapsing
We previously changed the touch logic to always fling even when
the panel is fully expanded, but that lad to an issue when it didn't
even start to expand.

Bug: 26255211
Change-Id: I8c991a0a19b49eb405b8efc2d69baf29c709b363
2016-02-22 20:57:43 -08:00
Selim Cinek
3322357b50 Added fake shadows in order to have the shadow nicely fade in
Bug: 26743157
Change-Id: I21c51aa3175276f7edeed4b6df6b8730909b6051
2016-02-22 16:54:04 -08:00
Selim Cinek
2854019979 Fixed the usage of the menu key to unlock
The menu key was not unlocking the keyguard properly
and didn't hide the notifications.

Bug: 26539875
Change-Id: I9dd89767f00d29c15d1d4e840a1ab22d59e58c8d
2016-02-22 15:57:02 -08:00
Selim Cinek
3c76d509d3 Allow dismissal of sensitive notification
If the general setting is not to hide sensitive information
we allow the user to dismiss it.

Bug: 26328503
Change-Id: Ibea5d94e544291f00d8a2923b8cbf14170510bd8
2016-02-22 15:57:01 -08:00
Selim Cinek
e4c068d258 Fixed a bug with public notifications
Public notification titles were incorrectly modified when
the notification wasn't autoredacted (i.e screenshot).
This also lead to the doze mode not working correctly anymore
as notifications were colored.

Bug: 24866646
Change-Id: I3d4cdb0e13cfbf3fb8082b930936260d7c4749af
2016-02-22 15:57:01 -08:00
Selim Cinek
0934bd9942 Fixed a bug where the dozemode was incorrectly applied
This could lead to invisible white text.

Bug: 27147160
Change-Id: I1196c251c795a7e271545405fb3936bcbb84cb19
2016-02-22 15:57:00 -08:00
Jason Monk
15e124f2df Merge "Fix crash on QS edit immediate collapse" into nyc-dev 2016-02-22 20:34:27 +00:00
Jason Monk
77a2c5f56b Fix crash on QS edit immediate collapse
Bug: 27164002
Change-Id: Idd47716c08987eba14826c7b1f428c3231f9fdbd
2016-02-22 15:18:36 -05:00
Toni Barzic
b799d3f127 Properly handle non split system user when showing bouncer
For system user, there should be no atempt to dismiss keyguard,
but only if system user is split (i.e. not a meat user).

Change-Id: Ia2c1e7a3e197c5be72446f21b3883e853485ff26
(cherry picked from commit aa401afb4c)
2016-02-22 19:32:15 +00:00
Toni Barzic
a2ab1d6932 Merge "Try to dismiss Keyguard bypassing bouncer only for active users" into nyc-dev 2016-02-22 19:31:52 +00:00
Youngsang Cho
ffd4c73a29 Merge "PIP: Rename closeInternal to closePipInternal" into nyc-dev 2016-02-22 19:22:32 +00:00
Youngsang Cho
336007ba71 PIP: Rename closeInternal to closePipInternal
Change-Id: I6e1e98a1a75728d057a7dee3edbd2f2a6f32112d
2016-02-22 11:17:29 -08:00
Youngsang Cho
d78bf970ca Merge "Close PIP when PIP activity is finished" into nyc-dev 2016-02-22 19:04:29 +00:00
Youngsang Cho
23df699451 Close PIP when PIP activity is finished
Bug: 26717072
Change-Id: I5dd431b0ee64ca152bd49013bb6bbb3e8d9fba71
2016-02-22 11:03:00 -08:00
Mady Mellor
e03688068f Merge "Fix crash when clearing all notifications" into nyc-dev 2016-02-22 18:54:40 +00:00
Mady Mellor
3cb40246f1 Fix crash when clearing all notifications
Bug: 27284789
2016-02-22 10:43:35 -08:00
Toni Barzic
657f88516a Try to dismiss Keyguard bypassing bouncer only for active users
Some bouncers might allow showing keyguards for users that are not
currently active (e.g. before any user is signed in, in which case the
system user is active). Make sure that keyguard is not dismissed
without showing bouncer in these cases.

Change-Id: I0e037b2d4e095d49c1f0d06a9fe1b9a6233421b0
(cherry picked from commit aa69fd417f)
2016-02-22 18:39:22 +00:00
Xiaohui Chen
5da713599f sysui: refactor for extensibility
Bug: 27098035
Change-Id: I9ce480a5995f354ad45b6f13112cfa1ab49934cd
2016-02-22 18:07:42 +00:00
Geoff Mendal
687ccbbf71 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-22 15:29:59 +00:00
Geoff Mendal
bf0dabe274 Import translations. DO NOT MERGE
Change-Id: Ibf2edd0cc4c1d2d8f11d5ee489e6e9729d2d2b5e
Auto-generated-cl: translation import
2016-02-22 07:28:16 -08:00
Jason Monk
f23aa99270 Move background data notif to data saver status icon
Bug: 26796370
Change-Id: Ibf53c3affa63100b603e362b58ca6d2958791321
2016-02-22 14:56:05 +00:00
Jason Monk
855d408e17 Fix edit/page indicator area layout
Bug: 27201532
Change-Id: Ie03e6aeeb9d607f1fba370a4f1bd23a2ffb9b485
2016-02-21 11:00:49 -05:00
Jason Monk
7435155432 Don't set the text on QS Tiles unless we need to
Avoid causing layout passes.

Bug: 27278616
Change-Id: I5104a756b44154f6b66f2c74aee17caf29acf628
2016-02-20 16:56:07 +00:00
Jason Monk
865a4ee0cd Merge changes Icb8e2097,I9a2a16f9 into nyc-dev
* changes:
  Optimization for TouchAnimator
  QS Animations - first pass, still not spec
2016-02-20 16:53:04 +00:00
Jason Monk
8d1253e944 Optimization for TouchAnimator
Bug: 27278616
Change-Id: Icb8e20977a0f8cdbc6ace25707e8f95e34efc356
2016-02-20 16:51:41 +00:00
Jason Monk
162011ebe8 QS Animations - first pass, still not spec
Bug: 27201532

Change-Id: I9a2a16f9d769db1f40ae733ad55a07ede4780698
2016-02-20 08:36:40 -05:00
Jorim Jaggi
0c790411c3 Cancel fling animation when starting to drag
Makes sure we don't end up in a weird state because
at the end of the fling animation, mDockSide gets
reset.

Bug: 27269044
Change-Id: I779b8ee9be9a35553c7f822421d1f02ca802111c
2016-02-20 02:23:37 +00:00
Jason Monk
11c4fd411a Merge "Fix QS Open on single finger scroll" into nyc-dev 2016-02-20 01:07:35 +00:00
Jason Monk
83e431fc51 Fix QS Open on single finger scroll
The QSPanel had 0 height when shade was collapsed which messed up
the immediate expand logic.

Bug: 27197894
Change-Id: I623eb5d3b945a83b3410fa5dc52c4f96dd6700cb
2016-02-19 19:32:13 -05:00
Selim Cinek
e961f32b0f Merge "Fixed a clicking bug on the lockscreen" into nyc-dev 2016-02-19 23:04:55 +00:00
Selim Cinek
54c857cda6 Merge "Cleaned up the logic for the picture end margin" into nyc-dev 2016-02-19 23:04:26 +00:00
Selim Cinek
79fa406933 Merge "Adapted the measuring of notification content view" into nyc-dev 2016-02-19 23:03:59 +00:00
Mady Mellor
ed8f6cff50 Merge "Improve touch target for the gear beneath a notification" into nyc-dev 2016-02-19 22:15:55 +00:00
Jorim Jaggi
0bea7ebf56 Merge "New behavior for docked stack when going home" into nyc-dev 2016-02-19 22:14:46 +00:00
Mady Mellor
15d6eafec5 Merge "Initial implementation of dismiss gesture + inline settings icon" into nyc-dev 2016-02-19 22:06:33 +00:00
Jason Monk
724214a878 Add TileService settings API
It will be used for long-clicks on TileServices when available.
Otherwise will default back to app info for the app providing the
tile.

Bug: 27269699
Change-Id: Iaf1ee1e6fe6e1357cda32c74bfdc0c26af0f5901
2016-02-19 16:43:00 -05:00
Jason Monk
76c67aa361 Add QS long-press -> Settings
Bug: 27269699
Change-Id: I861cb65dbb6609d9c95d5341f5f5aebc3cc519f3
2016-02-19 16:42:50 -05:00
Jorim Jaggi
42625d1bc7 New behavior for docked stack when going home
- We keep the docked stack visible when home task is visible even
though it's not resizable.
- We introduce the a new concept called "minimizing" the docked stack,
which happens when going home. In this state, the docked stack is
clipped of almost completely.
- To achieve that, we introduce TaskStackBoundsAdjustController,
which adjusts the bounds of the docked stack when minimized. Also,
migrate the IME handling to this new class.
- We also need to inform SysUI that it is now minimized so it can
remove the drag affordance on the divider, and also make it a bit
smaller.
- When we detect an app transition, we check whether the home stack
gets visible/invisible. We then start an animation which runs in
sync with the normal app transition. For that we introduce
DockedStackDividerController.animate(), which performs the animation.

Bug: 27137961
Change-Id: I8623bc73cc6872bf28c5b1b8d5795974576811b2
2016-02-19 12:11:11 -08:00
Selim Cinek
34eda5ed70 Fixed a clicking bug on the lockscreen
Parts of custom notficications were not singeclickable

Bug: 27247884
Change-Id: I7c52500a77929059b24e8119f50492e0f1399401
2016-02-19 11:54:43 -08:00
Selim Cinek
247fa01931 Cleaned up the logic for the picture end margin
This allows decorated custom remote views to be properly
showing with a large image.

Bug: 24866646
Change-Id: Ie355e503437f19ace2503d42f44bee4bd22f03c8
2016-02-19 11:54:41 -08:00
Selim Cinek
f619ffccd7 Adapted the measuring of notification content view
We are now measuring all notifications content views
with AT_MOST but with an upperboundary. This allows us
to put custom views inside our normal views and still not
blow up the small size. Also adapted the dimens not to
clamp the templates

Bug: 24866646
Change-Id: If9053d84a9d91e6bc9964f64b170e3c3260a807d
2016-02-19 11:54:15 -08:00
Adrian Roos
6e99febd18 Merge "Use actual lockscreen wallpaper" into nyc-dev 2016-02-19 19:53:20 +00:00
Sudheer Shanka
f498c8ddc1 Merge "Part1 - Don't add padlock if the restriction is not set by admin." into nyc-dev 2016-02-19 19:31:47 +00:00
Adrian Roos
e381c169fc Use actual lockscreen wallpaper
Bug: 25454162
Change-Id: I30ff02420bc4b72d7e4bf9105f2fd4c8017f5756
2016-02-19 11:29:16 -08:00
Sudheer Shanka
a8fbbb30ea Part1 - Don't add padlock if the restriction is not set by admin.
Bug: 26687435
Change-Id: I2fd740b1fa0d76eceedc4dde73e41d779820bbcf
2016-02-19 19:21:57 +00:00
Julia Reynolds
73d96fb4bb Merge "Remove Notification Topics." into nyc-dev 2016-02-19 19:17:25 +00:00
Mady Mellor
f062580d39 Improve touch target for the gear beneath a notification
This CL increases the touch target size of the gear beneath
a notification.

It also adds the logic:
- If the gear is displayed and the notification is touched
then the notification slides back over the gear
- If the grey background is touched rather than the gear
  nothing happens

Bug: 22451710
Change-Id: I7c1d8943e066fdd821446c2f90807891d6b74e5c
2016-02-19 10:52:06 -08:00
Jason Monk
ea168d229d Merge changes Ie427a2d8,I213f1f76 into nyc-dev
* changes:
  SysUI Tuner: UI cleanup and grouping
  SysUI Tuner: Night mode v3
2016-02-19 18:50:05 +00:00