summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Never show page indicator in app drawerScott Mertz2016-06-071-0/+2
| | | | | | | | | | | | When rotation is enabled and we rotate the app launcher, we attempt to update the indicator alpha state before the view is attached. This results in the alpha state not applying to the indicator. Instead, always set the view to INVISIBLE when the app drawer is showing and the workspace is attached. FEIJ-998 Change-Id: Ia2691a12c2cc79ea76a7e91d7d13e94b97df09b5 (cherry picked from commit abf7e7d5b17e406663435be4f41705d9afd57259)
* Trebuchet: Fix possible OOBMichael W2016-05-311-5/+8
| | | | | | | | | | | In some cases mText is empty and Substring will then throw an OOB Add logic to fix this (Reference: BugReports 13-20160506-12, Line #157) RM-232 Change-Id: I2b32b0a56a93977d34b780afb9b3047e9fa566b0 (cherry picked from commit 21115ac80f6d2c47b9f169904536830dfc8568b2)
* Wallpaper: Allow multiple partners to be loadedd34d2016-05-272-6/+45
| | | | | | | | | | | | Current implementation only allowed for one partner, and any additional partner wallpapers would not be loaded. Partrner.get() still returns the first partner and a new method, getAllPartners is introduced which returns a list of all partners. Ticket: FEIJ-410 Change-Id: I06b6cd4817d3f812e2110967f075d68ee31cb318 (cherry picked from commit 93e949f1a9931bf7188f4d2a43630603d7a388a8)
* Move icons to fit within Dynamic grid upon resize.cretin452016-05-202-8/+49
| | | | | | | | | | Missed part of this patch during forward port: https://github.com/CyanogenMod/android_packages_apps_Trebuchet/commit/e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58 Issue-id: CYNGNOS-2908 Change-Id: I49fb4e4a1b86d41be263d4f9b84020450f54d3f9 (cherry picked from commit dccaadbe194f435d7bc06843650ab7d4fe21551c)
* Trebuchet: Rebind QSB in finishBindingItemscretin452016-05-151-0/+1
| | | | | | | | | | Sometimes the GMS QSB doesn't bind properly. Especially after going through OOBE without network. Issue-id: CYNGNOS-2833 Change-Id: Ib64fee898b6f55d14f35fe7efc5c36b090422d36 (cherry picked from commit c9fcf9a251b9fb9aa0e6e6fd31b1053e8474d02c)
* Check for null provider info when removing widgetSkrilax_CZ2016-05-121-2/+4
| | | | | | | | | | | | | When doing clean installation and restoring backup, any stubs for the widget on the homescreen for apps are not present (downloading them doesn't help) appear to have null provider info. Add a check for that in removeAppWidget to prevent crashing. Issue-id: BUGDUMP-7204604 Change-Id: I207b6a9ba534f572e1937a7b2a0cdc4eb90aff37 (cherry picked from commit 921eb837fc1301edc5e91350a033a1ab6d6bba54)
* Trebuchet: Make workspace layout configurable by prebundled mcccretin452016-05-111-1/+48
| | | | | | | | | Ported patch: http://review.cyanogenmod.org/#/c/111725/ Issue-id: PAELLA-236 Change-Id: I1d02cfc4f1e7e7fc5b1aaf326072b0ffe8966c05 (cherry picked from commit fe7faac0dba67667ae671e6cf59c9706d45e579b)
* Put apps with uncomputable section names in special bucketArtem Shvadskiy2016-05-101-14/+20
| | | | | | Change-Id: I8ec0a2a9a46c3f45f2c52ac6a4d4d812881c52b7 issue-id: CYNGNOS-2683 (cherry picked from commit 1b2acd74d2cc2e3c7d0face409c6075c16e76755)
* Trebuchet: Index folder contents screen and cells on first loadcretin452016-05-103-31/+72
| | | | | | | Issue-id: CYNGNOS-2755 Change-Id: I260d1b098e7759a0134bc40f892b8783452c9528 (cherry picked from commit 499902463bb16aad036a57b9e02b34cb74548acf)
* Trebuchet: send metrics directly when possibleRoman Birg2016-05-042-44/+36
| | | | | | | | | | | | | Use the SDK directly instead of relying on an external package. Still relies on C-Apps Core to send. Reverts the revert and fixes the issue (missing aapt flag overlay) This reverts commit d20f7796e45dcae0e619d3bb76a3a89674705702. Ticket: CYNGNOS-2545 Change-Id: I9445cadc429c3158cabb6a7d07e016f6fe3dac19 (cherry picked from commit 90106d85b75a60a8bdc9c4ad891e4a2e7ce548dd)
* Prevent widget previews from showing empty images.Artem Shvadskiy2016-05-043-80/+166
| | | | | | | | | | | | | | | | | | | | | When scrolling through the widget drawer, we submit multiple AsyncTasks to load and display preview images. On certain devices, attempting to load these images from AppWidgetManagerCompat (when we are generating previews for the first time) on a multi-threaded executor can cause us to receive empty images. To avoid this, we allow preview loading from the cache on a multi-threaded executor, but defer preview generation to a single-threaded executor. Additionally, the read and write db methods were not using the same ComponentName output (flattenToString vs flattenToSimpleString), which was resulting in consistent cache misses that forced unnecessary preview regeneration. This has been unified so we properly load from the cache. Change-Id: I3a90cf88fed531713e5d2df876f4ede822f7d569 issue-id: FEIJ-346 (cherry picked from commit dd6f2a2891a8445591be3e9fa53db293d7fd880b)
* Use bitmap filtering for shrinking app iconsArtem Shvadskiy2016-05-031-1/+1
| | | | | | Change-Id: I54d1bff08c947f54ec0d35ec08b557ddd8e31e23 issue-id: CRACKLING-1051 (cherry picked from commit 1daec9c7f02dad48039ea6999f3b50983f3b4617)
* Prevent crash when exiting grid size fragmentArtem Shvadskiy2016-05-021-2/+4
| | | | | | Change-Id: Iea39713b71a8c54bf4bf79f0b1b0c865a7950fa4 issue-id: FEIJ-197 (cherry picked from commit a56a75dbeb84341ba1450fa58bad63301201aae9)
* Trebuchet: Don't create shadow on 0 width/height iconcretin452016-04-281-0/+4
| | | | | | | Issue-id: CYNGNOS-2646 Change-Id: Iccadeaf28ec5e36b1c5a2f7ce714aa31d4439167 (cherry picked from commit 4ed36691e3a76bf36903be270a5165cf3069dcac)
* Trebuchet: Don't crash when AppWidgetService is unavailablecretin452016-04-272-2/+8
| | | | | | | Issue-id: CYNGNOS-2437 Change-Id: Ie83f26482539a821f498e07bec6d955c849b02c7 (cherry picked from commit 5e5f8259c31ce5c628922f0ce0760df6704856bb)
* Trebuchet : Update default workspace for dialerRichard MacGregor2016-04-261-1/+6
| | | | | | | Ticket CD-544 Change-Id: I47602367254732390ff73ae4676e569b7f27b819 (cherry picked from commit 0c86fc125cd8cea0ed0f6c4827d159b56709e1cf)
* Trebuchet: Always cancel any pending dim animationscretin452016-04-141-4/+4
| | | | | | | Issue-id: CYNGNOS-2470 Change-Id: Id66a6acfa65af63a0c44b73b56769c566b09961c (cherry picked from commit c14b40481da9dfd861362c97cbc11f3fd3b26622)
* Ignore tap below scrubber in the app container padding areaKamaljeet Maini2016-03-251-1/+17
| | | | | | | | | | When user taps on the padding area of all apps container below the scrubber, the tap should be ignored. Before this patch, the tap was sent back to parent view, which led to scrolling of the background wallpaper. Now the tap is ignored. Change-Id: Ic8840c9eafaf254d2bfbffe556f3dc7ab20fdccc Issue-Id: CyanogenOS/CYNGNOS-1933
* Trebuchet: Fix NPE while binding unavailable itemscretin452016-03-241-1/+3
| | | | | | Issue-id: CYNGNOS-2282 Change-Id: I6895c3c043a2b8a9506f3dc2f8a357942d8f35c4
* Fix metric reporting for remote folderArtem Shvadskiy2016-03-212-27/+23
| | | | | Change-Id: I07ff54f2bd2c615ffb8625b4016704468bfb006f issue-id: CYNGNOS-2251
* Trebuchet: Fix some issues with the DB upgrade pathcretin452016-03-151-14/+21
| | | | | | Issue-id: CYNGNOS-2249 Change-Id: If124a9ac51c665c869cf5a745390374658b87156
* Show apps as unavailable when on unmounted storaged34d2016-03-153-8/+192
| | | | | | | | | | | This patch allows shortcuts to apps that are currently unavailable due to being on unmounted external storage to remain on the workspace and in folders. The icons will be disabled and grayed out until the external storage is mounted. Issue-id: CYNGNOS-1344 Change-Id: I971483806b27e3a75ef0d5bb89d8dfb86f97511e
* Trebuchet: Guard against NPE while querying for widget updatescretin452016-03-081-2/+5
| | | | | | Issue-id: CYNGNOS-1867 Change-Id: I43db0096da5f35bd2810f8793d8281607afea1ff
* Trebuchet: Highlight section being touched even when not scrolling scrubbercretin452016-03-084-3/+39
| | | | | | Issue-id: CYNGNOS-1882 Change-Id: Ief8b6593528c1a04a95ffaeea44c379659427fd8
* Trebuchet: Handle random crash during theme change / user switchcretin452016-02-291-2/+7
| | | | | | | | | | | Sometimes the IconCacheDB fails to open in writable mode during a theme change or user switch. Don't bother updating the icon cache when this happens. It will update later just fine. Issue-id: CYNGNOS-2083 Change-Id: I022ef436ff07880c188642456afad847ad9f41d3
* Trebuchet: Scale icons in portrait if using condensed gridcretin452016-02-291-2/+5
| | | | | | Issue-id: CYNGNOS-1993 Change-Id: I4b74402ebf61a7faed28a74683d87592121bb090
* Trebuchet: Featured Apps uses themed composed icons and responds to theme ↵Tyson Miller2016-02-222-1/+5
| | | | | | | changes Issue-Id: CYNGNOS-1789 Change-Id: I1e94b7688c4069932a36319bc6c216839056280e
* Trebuchet: Don't do reveal animation from apps/widgets to overviewcretin452016-02-171-1/+6
| | | | | | Issued-id: OPO-423 Change-Id: I218605be2215d5f6f8a2b2b8b786e0fdddb00643
* Trebuchet: always set initial wallpaper offsetsRoman Birg2016-02-161-1/+3
| | | | | | | | | After a fresh boot, computeScrollOffset() always returns false. So the result was the offsets were never properly being set on a fresh boot and they were only being applied on first drag of the home screen, which finally triggered computeScrollOffset() to return true. Change-Id: Iccaedd742bed861fca1f50dd54e2e4537fd4c9b0
* Add remote folder hook for view setup.Artem Shvadskiy2016-02-151-0/+2
| | | | | Change-Id: Iffeb93e9344ce17f3aa2fbdc855f59c6f3a3b235 issue-id: CYNGNOS-2025
* Trebuchet: Don't animate folder if locked state changedcretin452016-02-151-2/+6
| | | | | | Issue-id: CYNGNOS-2046 Change-Id: If6488d018b83b8e20874dbe0d32479f19ceac4cc
* Trebuchet: Fix measuring error when reloading app drawercretin452016-02-152-3/+11
| | | | | | Issue-id: CYNGNOS-1883 Change-Id: I77705be7020120bc58a45f507b288838a5eba2bb
* Trebuchet: Handle the NPE when user has no Google Apps installedLuK13372016-02-121-2/+3
| | | | Change-Id: Ie04d940d56497fd5e09fd4b1c44682527b20bdc5
* Trebuchet: Lock orientation while in grid size fragmentcretin452016-02-111-2/+4
| | | | | | Issue-id: CYNGNOS-2013 Change-Id: I14a8dfd98acd615c7ffd4b311027f5c46072cea8
* Refactor Launcher settings.Artem Shvadskiy2016-02-114-104/+63
| | | | | Change-Id: If5dcaaa9f4dad1a3eb151627622357331e8ad4da issue-id: CYNGNOS-1987
* Trebuchet: Open settings panel when clicking settingscretin452016-02-111-21/+16
| | | | | | Issue-id: CYNGNOS-2002 Change-Id: I4fc2ffd17febc8f1e5fa804e6a26feaa51a29c4b
* Trebuchet: Move allow rotation to home settings sectioncretin452016-02-102-14/+14
| | | | | | Issue-id: CYNGNOS-1929 Change-Id: Ib1e615ccbce7991a31e15a967c942994fc3c01c2
* Split remote folder settings into home and drawer sectionsArtem Shvadskiy2016-02-102-26/+35
| | | | | Change-Id: I0265ac00b4926007de3bda7619c0b1dbedb7580b issue-id: CYNGNOS-1984
* Trebuchet: Change icon labels setting to switchcretin452016-02-101-11/+17
| | | | | | Issue-id: CYNGNOS-1900 Change-Id: Ife68fe84867be631c59cc1de7c44205817e07130
* Trebuchet: Revise protected app folders UIcretin452016-02-103-461/+96
| | | | | | Issue-id: CYNGNOS-1881 Change-Id: I5cbc5d9fe9358fdf2708376bfe5d7bf2108a0897
* Prevent finalizing of remote folderArtem Shvadskiy2016-02-092-2/+8
| | | | | | Change-Id: I69872c917e710e93db38891817a509c7a3e65e63 issue-id: CYNGNOS-1948 issue-id: CYNGNOS-1951
* Add remote folder feedback metricArtem Shvadskiy2016-02-081-1/+2
| | | | | Change-Id: I3bd17f882d51c92bd02a237fd27a6a0b1c43873a issue-id: CYNGNOS-1869
* Add network/unlock receivers and additional metric eventArtem Shvadskiy2016-02-084-1/+130
| | | | | Change-Id: Ifc6fa10fac09ab735e77b963d869b87007265fe4 issue-id: CYNGNOS-1788
* Don't crash if a theme change intent arrives while we're not running.Danny Baumann2016-02-071-1/+5
| | | | Change-Id: I35aede5599d307674ef7a593adc5ffcf529ed99a
* Update remote folder metrics to include error logsArtem Shvadskiy2016-02-051-1/+2
| | | | | Change-Id: I32c0eb2b7c9633297703023f7d6218b7fa84448e issue-id: CYNGNOS-1525
* Hide remote apps completely if user has certain restrictionsArtem Shvadskiy2016-02-041-1/+1
| | | | | | | | | | Restrictions: - User does not have access to install apps. - User is in a restricted profile. - User does not have Play Store installed. Change-Id: Ie762e265bd57a924617f53b8fe460a456622b3c9 issue-id: CYNGNOS-1787
* Refactor fastscroll to disable zoom cleanlyArtem Shvadskiy2016-02-041-2/+2
| | | | | Change-Id: I3912986aae78bd5a3244410e4486a52a50834867 issue-id: OPO-424
* Trebuchet: Don't zoom icons on fast scrollcretin452016-02-041-1/+1
| | | | | | Issue-id: OPO-424 Change-Id: I2da15761896e5cdaa2cd622086206dbbb9c88bee
* Trebuchet: Don't animate folder closed when pressing menu keycretin452016-02-032-4/+16
| | | | | | | | * Also don't animate with Y translation if animation boolean is false. Issue-id: OPO-434 Change-Id: I4d2e68d967eca87c3e3d27e4ea22d4126ef3c998
* Trebuchet: Fix background flicker when opening all appscretin452016-02-031-0/+15
| | | | | | Issue-id: OPO-422 Change-Id: I96136f61fe3b2263f77d162952cf189927334b8b