Commit Graph

6317 Commits

Author SHA1 Message Date
TreeHugger Robot 9cbe86deee Merge "Disable drag and drop on Folder when its animating." into ub-launcher3-master 2017-03-27 19:24:23 +00:00
Sunny Goyal 467de1bdb1 Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval
am: 66485063d0

Change-Id: I6b8f4c082e8056eb84aeb49732063bb56917ab70
2017-03-27 18:40:59 +00:00
TreeHugger Robot 66485063d0 Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval 2017-03-27 18:33:52 +00:00
Jon Miranda f0cbf0f8b8 Disable drag and drop on Folder when its animating.
Bug: 36644495
Bug: 35064148
Change-Id: Icd335a773359152fa2680e84f56c3e2eef3551e0
2017-03-27 11:29:19 -07:00
Sunny Goyal eb3ba0fdfb Removing some unnecessary stacktraces from the log
Bug: 36604650
Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45
2017-03-27 11:23:18 -07:00
Tony Wickham d35775ab23 Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval
am: 35d44b4f85

Change-Id: Ia18c4c64d0fe60499bbe02c75afde0e18a2522f5
2017-03-27 17:57:05 +00:00
Tony Wickham c455293fa3 Merge "De-dupe shortcuts with the same id as the main notification." into ub-launcher3-dorval
am: c3dfed43eb

Change-Id: I60bbede53d61f117596e90eb3363a4cb5eac7245
2017-03-27 17:56:55 +00:00
Tony Wickham 35d44b4f85 Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval 2017-03-27 17:53:40 +00:00
TreeHugger Robot c3dfed43eb Merge "De-dupe shortcuts with the same id as the main notification." into ub-launcher3-dorval 2017-03-27 17:51:46 +00:00
Sunny Goyal 66d91e51d4 resolve merge conflicts of 40dfa3bf6 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Iee500631827ebc48c63c203fdcd0de888adcb135
2017-03-27 10:40:52 -07:00
TreeHugger Robot 40dfa3bf6e Merge "Revert "Adding some logging around launcher grid when device profile changes"" into ub-launcher3-dorval 2017-03-27 17:21:48 +00:00
Tony Wickham 3621062339 Use notification counts (instead of assuming all 1)
We still ignore group summary headers, which means, for example,
we won't get Gmail unread count. But single notifications that
have numbers associated, such as messages from a single contact
will be included in the badge count. So if you have 2 hangounts
threads, one with 10 messages and one with 8, the badge would
say 18.

Bug: 34939841
Change-Id: I20b9a857d91715e10c0da400a1cee209d7b837b8
2017-03-27 08:27:12 -07:00
Tony Wickham 2f5bb16915 De-dupe shortcuts with the same id as the main notification.
- Pass NotificationKeyData, which includes the shortcut id, instead of
  just the notification key from NotificationListener
- Remove the shortcut with the same shortcut id as the first
  notification, if it has one, in PopupPopulator#sortAndFilterShorcuts()
- Add some unit tests

Bug: 36571718
Change-Id: I308941b34c525b34686583476e3f82ccb8b7e2d8
2017-03-24 14:18:53 -07:00
Sunny Goyal 5756900508 Temporarily ignoring session broadcasts for 3 hours
am: 0d7f19a566

Change-Id: I2b2abdc4f0bb0a26487997427b2efd6807818a79
2017-03-24 16:30:40 +00:00
Sunny Goyal 0d7f19a566 Temporarily ignoring session broadcasts for 3 hours
Bug: 34957633
Change-Id: Ia82a4a33f3ab07c12e98bd9060a839d660827acd
2017-03-24 16:08:26 +00:00
Mario Bertschler d6756af623 Show recently used instant apps provided by the app discovery service in the same section as installed apps.
am: 853c13d427

Change-Id: I852e85f5b715d7f9ecc903bb0b9020e87c19cd99
2017-03-23 23:30:09 +00:00
Mario Bertschler 853c13d427 Show recently used instant apps provided by the app discovery service
in the same section as installed apps.

Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e
2017-03-23 15:41:17 -07:00
Jon Miranda 91d1439430 Remove setCurrentPlayTime call as it causes a crash.
In the previous change [1], we remove the duration
from the AnimatorSet so that the preview item
animations can finish faster than the other animations.
This causes the call to setCurrentPlayTime to crash,
because we never set a duration on the AnimatorSet.

This can be solved by creating a ValueAnimatorSet (future CL).

1: If63d4d032078ff4e28b72a09e35da3a71f1d0e27

Bug: 35064148
Change-Id: Ieed21e1ba8e669132188ce15fc20195ac841d14c
2017-03-23 15:27:14 -07:00
Jon Miranda ce74d2a813 Smoother folder animation tweaks.
1. Start preview item animations later opening
2. Finish item animations sooner when closing
3. 1 & 2 allow the preview items to move as part of
   the Folder and allows for a smoother animation
4. Remove setCurrentPlayTime as it is O API.

Bug: 36522198
Bug: 35064148
Change-Id: If63d4d032078ff4e28b72a09e35da3a71f1d0e27
2017-03-23 14:04:55 -07:00
Mario Bertschler 0eb6326b5f Fixes a crash in the AllAppsFastScrollHelper where on updating the activated flag
on the views it was trying to retrieve an item from the model for a non-existing
position in the model.

The fix is to check the position to the model size. It's not clear in what circumstance
the model (ArrayList) can differ to the position returned from the view-holder's
getAdapterPosition().

Bug: 36176501

Change-Id: I01b8daaad884702f9ed0e1caaa03d0ebaca69d39
2017-03-22 13:14:24 -07:00
Mario Bertschler f2be11ccc8 Merge "Enable Promise App Icon in All Apps." into ub-launcher3-master 2017-03-21 23:52:12 +00:00
Mario Bertschler bf2d46efad Enable Promise App Icon in All Apps.
- feature flag defaults to true
- avoid adding additional workspace shortcut if promise shortcut already
  exists
- handle promise app removal in package added callback for success case

Change-Id: I694701e35cc94481a9c337df3a17b1e5aa2c3b4c
2017-03-21 16:44:38 -07:00
Sunny Goyal d23f37794f Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval
am: 77ff9a4343

Change-Id: Ib0cd8cb8f963b78a9cd53ed896aeb6e4f6163683
2017-03-21 23:21:26 +00:00
Sunny Goyal 77ff9a4343 Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval 2017-03-21 23:15:59 +00:00
Sunny Goyal 24bb66a1c5 Removing the profile extra from intent and using the profile id from the profile column
The intent extra is not always correct as the profile id can change during backup restore.
This allows us to use a consistant behavior everywhere.

Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998
2017-03-21 15:14:43 -07:00
Tony Wickham e28fb8354e Add support for making nav bar light separately from status bar
am: ed68728b1f

Change-Id: Idfc723333b6186e84125894c822e1d820294d3d6
2017-03-21 15:28:53 +00:00
Tony Wickham df67e08789 Merge "Move some code from AllAppsTransitionController to VeriticalPullDetector" into ub-launcher3-dorval
am: 3c2cbd8ad4

Change-Id: Ib38f43b92ba778e789accbecd42e4aff7ee40d63
2017-03-20 23:56:53 +00:00
Tony Wickham ed68728b1f Add support for making nav bar light separately from status bar
Bug: 34940468
Change-Id: Ie5543895e4c8b8753c84ef24633377cc985efc0d
2017-03-20 16:53:01 -07:00
Tony Wickham 3c2cbd8ad4 Merge "Move some code from AllAppsTransitionController to VeriticalPullDetector" into ub-launcher3-dorval 2017-03-20 23:52:39 +00:00
Jonathan Miranda dea487502d Merge "Add padding to pending widget background." into ub-launcher3-dorval
am: e04aa92de3

Change-Id: Ia93d71c3f7ae43fe6bbaef17a098b2e4d84df5de
2017-03-20 23:38:52 +00:00
Jonathan Miranda e04aa92de3 Merge "Add padding to pending widget background." into ub-launcher3-dorval 2017-03-20 23:34:42 +00:00
Mario Bertschler 49e37073b1 Merge "Show promise app icon progress in All Apps and setup market intent on clicking promise app icon in All Apps." into ub-launcher3-master 2017-03-20 23:32:07 +00:00
Tony Wickham 66b7a74d9e Move some code from AllAppsTransitionController to VeriticalPullDetector
This makes VerticalPullDetector more generic
and able to be used elsewhere.

Bug: 34940468
Change-Id: I78f70529cb30e5c9e7748ca548f2d638c6d0811f
2017-03-20 16:22:41 -07:00
Sunny Goyal 4610324261 Revert "Adding some logging around launcher grid when device profile changes"
Bug: 35425060
This reverts commit c29de85780.

Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
2017-03-20 16:08:17 -07:00
Mario Bertschler 08ffaae3b6 Show promise app icon progress in All Apps and setup market intent
on clicking promise app icon in All Apps.

Only the progress will be changed with animation on progress update,
no relayout is performed. If the icon is newly bound, the progress
will not be animated.

Bug: 23952570
Change-Id: I98d3f945f08a2abadf53f20e6007c15e56d5d410
2017-03-20 16:02:24 -07:00
Sunny Goyal bf4327520c Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval
am: aeb60bffc9

Change-Id: I9570796d6ef999c346ac856b997c13685b51ac39
2017-03-20 22:25:15 +00:00
TreeHugger Robot aeb60bffc9 Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval 2017-03-20 22:20:06 +00:00
Sunny Goyal b57645fcdb Removing config shortcut activities for managed profiles for
apps build with older sdk

> Also fixing the bug where legacy icon with primary user gets
created when managed user failed to provide the new icon

Bug: 34392403
Change-Id: I1d56962e9520742781df6cbeb03be2b9767a8c0b
2017-03-20 15:13:51 -07:00
Jon Miranda 5150d59603 Add padding to pending widget background.
Bug: 36450202
Change-Id: I12c754d0ff1ac2f9a63d2e475bff5524fe51cb57
2017-03-20 14:51:43 -07:00
Tony Wickham de33e76948 Merge "Filter out some notifications." into ub-launcher3-dorval
am: 3dc60c6e39

Change-Id: Iec950f7666aa232c2655c73016e36bc1e1d2e9f6
2017-03-20 21:38:14 +00:00
Tony Wickham 3dc60c6e39 Merge "Filter out some notifications." into ub-launcher3-dorval 2017-03-20 21:29:20 +00:00
Justin Cui 6d00d97704 Merge "Make landscapeProfile and protraitProfile public." into ub-launcher3-dorval
am: b00fcd4e49

Change-Id: Ie62cdf16f27edf46e5b2bbec81873b99f124bb48
2017-03-20 17:41:58 +00:00
Justin Cui b00fcd4e49 Merge "Make landscapeProfile and protraitProfile public." into ub-launcher3-dorval 2017-03-20 17:35:50 +00:00
cuijiaxing abda8d79b4 Make landscapeProfile and protraitProfile public.
This is needed to make prediction sticky: b/21654652

Change-Id: Ie8cb77ed9cbf1bf5b164828d0c4335111039e7c5
2017-03-20 17:14:11 +00:00
Sunny Goyal afc3f09240 Adding support for showing the widget preview based on the provided RemoteViews
am: c65a0085d7

Change-Id: Iabea96bb74294e2775a08427c17e154020d9bc40
2017-03-17 18:41:31 +00:00
Mario Bertschler f71bb700aa Merge "Show promise app icon in All Apps while installation process." into ub-launcher3-master 2017-03-17 18:41:20 +00:00
Sunny Goyal c65a0085d7 Adding support for showing the widget preview based on the provided RemoteViews
Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
2017-03-17 11:25:29 -07:00
Mario Bertschler 817afa3447 Show promise app icon in All Apps while installation process.
This CL only modifies the model and is behind a feature flag
which per default is set to false.
The app icon will appear as a promise icon, it reacts on icon
or label changes and the icon will be remove on finishing the
installation process. With this CL the progress of the installation
process is not visible.

Bug: 23952570

Change-Id: I510825d0b0b1b01eb14f7e50f0a2358b0d8b99b5
2017-03-17 09:21:35 -07:00
Jonathan Miranda 54c5fe5ddc Merge "Revert "Temporary fix for Widgets in battery saver mode."" into ub-launcher3-dorval
am: d8ea01ccf0

Change-Id: I8592ea63a61b284c5b740b6d9898c43bcbe44747
2017-03-16 21:34:04 +00:00
Jonathan Miranda 5f77fdb8b9 Merge "Revert "Temporary fix for Folders in battery saver mode."" into ub-launcher3-dorval
am: 3345f133a0

Change-Id: If2c4fa92842c08501b90f3da6bc972e4ba32c6a8
2017-03-16 21:30:35 +00:00