summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update notification view to match newer specsTony Wickham2017-02-2414-163/+269
| | | | | | | | | | | - Use smaller radius for notifications round rect background - Remove "Notifications" header, and clip children to round rect path - Flip main notification so that icon shows on the right instead of left; footer is also flipped so animation makes sense - Clean up animations to animate view outline instead of height Bug: 32410600 Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
* Using transaction when dropping tables, so that the DB never entersSunny Goyal2017-02-233-20/+13
| | | | | | | an inconsistant state Bug: 34720697 Change-Id: I55a26d63be6c06622da6ee3395bf1990f1a58a11
* Merge "Removing custom state definition from FastBitmapDrawable" into ↵TreeHugger Robot2017-02-247-235/+135
|\ | | | | | | ub-launcher3-dorval
| * Removing custom state definition from FastBitmapDrawableSunny Goyal2017-02-237-235/+135
| | | | | | | | | | | | | | > For Fast scrolling, using state list animator defined in xml > For Pressed state, using onState change method in a drawable Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
* | Merge "Remove first icon from notification footer after it animates." into ↵TreeHugger Robot2017-02-242-41/+41
|\ \ | |/ |/| | | ub-launcher3-dorval
| * Remove first icon from notification footer after it animates.Tony Wickham2017-02-222-41/+41
| | | | | | | | | | | | | | | | | | | | | | | | Before, we had a hack where the notifation view would tell the footer to trim its notifications, which is inefficient and ugly since we already know exactly what notification to remove. So now we move the relevant removal logic (keeping things like the overflow text in sync) to a removeViewFromIconRow() that is used after the icon animates as well as when trimming notifications. Bug: 32410600 Change-Id: I19e54e0c28daea869b45649c7f5c74843412bb86
* | Ignore tasks if the LauncherModel is still pending.Jon Miranda2017-02-231-0/+6
| | | | | | | | | | | | | | | | The tasks will be enqueued after the model is loaded when it gets to the final state. Bug: 31509386 Change-Id: Id72aaedb025a91a49b25e1ef103cc1976d603b21
* | Merge "Adding some tests for request pin shortcut/widget flow" into ↵TreeHugger Robot2017-02-2212-70/+575
|\ \ | | | | | | | | | ub-launcher3-dorval
| * | Adding some tests for request pin shortcut/widget flowSunny Goyal2017-02-2212-70/+575
| |/ | | | | | | | | Bug: 33584624 Change-Id: I49df36f60d2ae071b9d2c77c9c3300e010cd3bb9
* / Simplifying Model data load state managementSunny Goyal2017-02-225-122/+78
|/ | | | | | | | | | | Instead of maintaining 3 different states, each tied to a subset of data, maintaing a single state that represents all the data. Individual subset data is invalidated in rare cases and these invalidates are tightly tied to the UI. This also allows us to add new data to the model, without worring about classifying the data into a subset. Bug: 34112546 Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
* Merge "Close Folder when an item is auto added to it." into ub-launcher3-masterTreeHugger Robot2017-02-224-2/+23
|\
| * Close Folder when an item is auto added to it.Jon Miranda2017-02-224-2/+23
| | | | | | | | | | | | | | | | This can happen when items (as part of a Work Profile) are auto added to the Work profile Folder. Bug: 35628160 Change-Id: I29d3b277b0e9cd4bb238fb5aff9a52c6b9e764f8
* | Empty commit to trigger a build.Bill Rassieur2017-02-220-0/+0
|\ \ | |/ |/| | | | | | | am: 8dfc049598 Change-Id: Ic3dae2d96ac6dac123392c4d232e1362f3206a32
| * Empty commit to trigger a build.Bill Rassieur2017-02-220-0/+0
| | | | | | | | BUG: 35639108
* | Import translations. DO NOT MERGEBill Yi2017-02-2280-0/+320
| | | | | | | | | | Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f Auto-generated-cl: translation import
* | Merge "Fixing accessibility description for all-apps grid adapter. Only ↵Sunny Goyal2017-02-221-6/+45
|\ \ | | | | | | | | | counting app icons towards various collection related info" into ub-launcher3-master
| * | Fixing accessibility description for all-apps grid adapter.Sunny Goyal2017-02-211-6/+45
| | | | | | | | | | | | | | | | | | Only counting app icons towards various collection related info Change-Id: I2aca87e1acf6cd7bdaddfbaad174e273e8272d4b
* | | Close all open views when binding the Launcher.Jon Miranda2017-02-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where a work profile remains opened even after the work profile is removed from the device. This can occur when the work profile is removed with the Folder still opened. Bug: 35627777 Change-Id: I8d5b4bd9931cad2316b6b8786501d6b3780b7aca
* | | Merge "Launcher3: fix app shortcuts for suspended apps" into ub-launcher3-masterTreeHugger Robot2017-02-216-3/+40
|\ \ \
| * | | Launcher3: fix app shortcuts for suspended appsCharles He2017-02-216-3/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL fixes app shortcuts for suspended packages. 1) When DO/PO suspends an app, its pinned shortcuts are instantly grayed out, but this is not persisted after the launcher restarts (e.g. device reboot). We now enforce the launcher to check the suspended state when loading the workspace, and gray out pinned shortcut icons accordingly. 2) When DO/PO suspends an app, its app shortcut popup is still available. We now temporarily disable the popup when the app is suspended, and persist the state across restarts. Bug: 32365540 Test: manual, by following the steps in the bug above Test: manual, by restarting the launcher package Change-Id: I983d7c17fa198beca23b66459b50bd67b447bdd2
* | | | Fix folder icon animation where it animates downwards on 1st run.Jon Miranda2017-02-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first time FolderIcon#growAndFadeOut is called, the folder icon pivot x/y is not set. By moving the call after centerAboutIcon (which sets the pivot point), we get the expected result of the animation growing upward. Bug: 35126799 Change-Id: I22fccb6b23550f823eb7b4485b9584022b810323
* | | | Merge "Remove badges when launcher loses notification access" into ↵Tony Wickham2017-02-212-13/+15
|\ \ \ \ | |_|/ / |/| | | | | | | ub-launcher3-master
| * | | Remove badges when launcher loses notification accessTony2017-02-212-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - NotificationListener.getInstance() has been changed to getInstanceIfConnected() (same behavior as before). - When starting launcher, we send a full refresh of badges regardless of whether the NotificationListner is connected. If it is not connected, we pass an empty list for the active notifications, so that all pre-existing badges are removed. Bug: 35221052 Change-Id: If920317f10814c010e02b5a30ce86a58ac7bc61c
* | | | Enabling translation for string relates to Add to homescreen confirmation promptSunny Goyal2017-02-171-2/+2
| | | | | | | | | | | | | | | | | | | | Bug: 34819119 Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
* | | | Merge "Simplifying some launcher themes" into ub-launcher3-masterSunny Goyal2017-02-1743-226/+192
|\ \ \ \ | |/ / / |/| | |
| * | | Simplifying some launcher themesSunny Goyal2017-02-1643-226/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* | | | Merge "Import translations. DO NOT MERGE" into ub-launcher3-masterTreeHugger Robot2017-02-174-10/+10
|\ \ \ \
| * | | | Import translations. DO NOT MERGEBill Yi2017-02-164-10/+10
| |/ / / | | | | | | | | | | | | | | | | Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3 Auto-generated-cl: translation import
* | | | Import translations. DO NOT MERGEBill Yi2017-02-170-0/+0
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | am: e5c99a2140 -s ours Change-Id: Ifffdd23bc65534039a330bf77ceffaba418982ba
| * | | Import translations. DO NOT MERGEBill Yi2017-02-164-10/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: If87152e5d565c37127110756f1185f82833ec685 Auto-generated-cl: translation import
* | | | Merge "Add notification listener back to the manifest" into ub-launcher3-masterAdam Cohen2017-02-174-0/+72
|\ \ \ \
| * | | | Add notification listener back to the manifestTony2017-02-164-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d27b65d4d0035d6b66aac3e6040aa791f155e502. Also added boolean to values/ and values-v25/ and values-v26/ to enabled/disable the listener by API version. Bug: 35443111 Bug: 33553066 Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
* | | | | Merge "Ensure that filtered notifications are removed from BadgeInfo." into ↵Tony Wickham2017-02-162-23/+40
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | ub-launcher3-master
| * | | | | Ensure that filtered notifications are removed from BadgeInfo.Tony Wickham2017-02-132-23/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are cases where a BadgeInfo can contain a key that is later used for a notification that should be filtered out. So instead of simply not sending filtered notifications to PopupDataProvider, now we explicitly send them and remove the corresponding key from the BadgeInfo if it exists. Bug: 35239510 Change-Id: I9532f47b1f07b44234f8707657b15b0de519b347
* | | | | | Merge "Separating methods for updating the model to a sepatate class." into ↵TreeHugger Robot2017-02-1617-372/+450
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | ub-launcher3-master
| * | | | | | Separating methods for updating the model to a sepatate class.Sunny Goyal2017-02-1617-372/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
* | | | | | | Merge "Updating the shortcut preview generation logic" into ub-launcher3-masterSunny Goyal2017-02-164-61/+77
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | |
| * | | | | | Updating the shortcut preview generation logicSunny Goyal2017-02-164-61/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drawing a shortcut icon on a white round-rect with shadow Also center aligning the preview Bug: 34819119 Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
* | | | | | | Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-1610-329/+119
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* | | | | | Merge "Fixing wrong check for grid migration" into ub-launcher3-masterTreeHugger Robot2017-02-161-1/+1
|\ \ \ \ \ \
| * | | | | | Fixing wrong check for grid migrationSunny Goyal2017-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0475512302fd185fcd984d032cf19b34df3f8840
* | | | | | | Merge "Adding some logging around launcher grid when device profile changes" ↵Sunny Goyal2017-02-163-0/+39
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | into ub-launcher3-master
| * | | | | | Adding some logging around launcher grid when device profile changesSunny Goyal2017-02-153-0/+39
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 35349518 Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
* | | | | | Merge "Animate notification background color directly" into ub-launcher3-masterTony Wickham2017-02-161-10/+11
|\ \ \ \ \ \
| * | | | | | Animate notification background color directlyTony2017-02-151-10/+11
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we were calling setBackgroundColor() in the update listener, which is less efficient because it creates a new ColorDrawable; now we reuse one throughout. Change-Id: I0cd87e5ee72af41d2dae4375ce3df9fd6e92bd82
* | | | | | Merge "Ignore touches before notification is populated" into ub-launcher3-masterTony Wickham2017-02-161-0/+8
|\ \ \ \ \ \
| * | | | | | Ignore touches before notification is populatedTony Wickham2017-02-151-0/+8
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 35398757 Change-Id: I24f1b66787af7c7caeb325e9a1f3e6ef86e62b81
* / / / / / Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is nullTony Wickham2017-02-151-2/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | Bug: 34521181 Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c
* | | | | Merge "Adding minSDK for test targets" into ub-launcher3-masterTreeHugger Robot2017-02-152-0/+3
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Adding minSDK for test targetsSunny Goyal2017-02-152-0/+3
| | |_|/ | |/| | | | | | | | | | | | | | Bug: 35079440 Change-Id: Ie27eebe7afaed6a80efc43cb41f651e8acabc835