summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [DO NOT MERGE] Add shadow to Adaptive IconsHyunyoung Song2017-03-022-2/+14
| | | | | | | Bug: 35920618 Change-Id: Ib48a656f988d1f007c32ab15cb28d120fab1e94f (cherry picked from commit da9ac1f01a16a2fe13e321d6fada5cb63f534bc2)
* Update notification visuals (part 2)Tony Wickham2017-03-0215-185/+281
| | | | | | | | | | | | | | - Background is now white, and color beneath and divider color updated accordingly (not from color extraction) - Removed overflow text ("+6") and added it to a header ("6 Notifications"). Use "..." instead if there is an overflow. - Even spaced out icons in notification footer between the far right icon and the ellipsis - Remove code to change arrow tint, since it is always white now. This also fixes the issue where it was drawn as a rect. Bug: 35766387 Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
* Fixing wrong check being used for application statusSunny Goyal2017-03-014-15/+9
| | | | | | | | | | Earlier we were relying on activity list to check is an app is installed or not. It fails if the app only exposes widgets and no visible activity. Hence dragging an icon to AppInfo sometimes causes the icon to get disappear. Bug: 33241335 Change-Id: Ieb71e298a0930dd0a831cf09bd1e998514a427fd
* Merge "Fixing SDCard and package enabled state checks in ↵TreeHugger Robot2017-03-026-55/+50
|\ | | | | | | PackageManagerHeler" into ub-launcher3-dorval
| * Fixing SDCard and package enabled state checks in PackageManagerHelerSunny Goyal2017-03-016-55/+50
| | | | | | | | | | Bug: 32365540 Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5
* | Merge "Add null check when populating popup" into ub-launcher3-dorvalTreeHugger Robot2017-03-021-8/+8
|\ \
| * | Add null check when populating popupTony2017-03-011-8/+8
| |/ | | | | | | | | | | | | It was crashing when there were notifications but no shortcuts. Change-Id: I92e961e6186ef24736777855e114bd3245f7ac91
* / Add shadow to badgesTony Wickham2017-03-016-14/+74
|/ | | | | | | | | | - Add static method to ShadowGenerator to generate a circle Bitmap with a shadow. - Move setColorScale() from DragView to Themes, and use it to apply color to the shadowed Bitmap. Bug: 35744066 Change-Id: I8d1da528bbf94dc83851f0b4016361ed9f8d5349
* Only check for badge setting on notification on O+Tony Wickham2017-03-011-3/+6
| | | | | Bug: 33553066 Change-Id: I20b991ae23c92c81510986191c05426ea72d273b
* Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorvalTony Wickham2017-03-0117-289/+364
|\
| * Merge deep shortcuts in rounded rectTony Wickham2017-03-0117-289/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - DeepShortcutViews are added to ShortcutsItemView, which is in PopupContainerWithArrow - Moved some shortcut-specific logic to ShortcutsItemView (namely, touch/long-click handling for draggin shortcuts) - Moved round-rect clipping to PopupItemView - Removed collapseToIcon() logic, including PillWidthRevealOutlineProvider, which was only used for that purpose. It isn't necessary now that the deep shortcuts have no background themselves. - Replaced focus pill drawable with ripple effect on shortcuts and notification view. Bug: 35766387 Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
* | Merge "Respect badge settings to filter out badges" into ub-launcher3-dorvalTony Wickham2017-03-011-4/+11
|\ \
| * | Respect badge settings to filter out badgesTony Wickham2017-03-011-4/+11
| |/ | | | | | | | | | | Bug: 35405389 Bug: 32410600 Change-Id: I8e7b928a6cf7d9a66df8cb056bd73eaa45f68e6c
* | Close Folder before doing any automatic updates.Jon Miranda2017-02-285-7/+9
| | | | | | | | | | | | | | | | | | | | We already close the Folder when Work Profile apps are auto added to the Work Profile Folder. This change extends that functionality to when apps are being auto removed from the Work Profile Folder. Bug: 35845161 Change-Id: I2aa6a6a0ed28a95f6a59a549430f91482583548b
* | Import translations. DO NOT MERGEBill Yi2017-02-2777-308/+154
| | | | | | | | | | Change-Id: I81729ad91123d3dc3c365d09f2c7027f62411755 Auto-generated-cl: translation import
* | Update Launcher3 AndroidManifest.xml to match NexusLauncher.Jon Miranda2017-02-271-1/+2
| | | | | | | | | | | | | | | | | | | | Add stateUnchanged flag to activity windowSoftInputMode. * Original Change-Id: Iad029d1ce327527ae3933c9eca86474be6ba5aa1 Set resizeableActivity to true to enable multi-window for Launcher. * Original Change-Id: I2d17c89db2eb8d60b3393c2abc3b026e5574085d Change-Id: I534f6511e7fd7778cc4469f56527d6452ccbc9a9
* | Fix crash when the progress of an installing app decreasesSunny Goyal2017-02-271-0/+3
| | | | | | | | | | Bug: 35793892 Change-Id: I957967c7a11359d951fe055027aa45c7dfd1bd84
* | Enable suggestions for Folder names.Jon Miranda2017-02-242-4/+19
|/ | | | | | | | We turn on suggestions, turn off auto complete, and disable the default behavior where red lines appear under typos. Bug: 30055146 Change-Id: Ia151b7a4db1dfc6908504e6ea82a1f6989f05ca5
* 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