summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Folder.java
Commit message (Collapse)AuthorAgeFilesLines
* Version code cleanupSunny Goyal2015-08-171-2/+2
| | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* Refactoring to ExtendedEditText.Winson2015-08-131-3/+10
|
* Merge "Refactoring search bar animations." into ub-launcher3-burnabyWinson Chung2015-08-051-1/+1
|\
| * Refactoring search bar animations.Winson Chung2015-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | - This refactoring ensures that LauncherStateTransition does not do its own animation on the QSB, and that all animations to the SearchDropTargetBar go through its own animators. Bug: 22515084 Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
* | Loading high resolution icons for first 3 items in a folderSunny Goyal2015-08-041-1/+1
|/ | | | | | | | | > Sometimes a folder gets rearranged, without updating the model, like when an app in uninstalled. In that case, we need to update the icons for folder items, which were previously hidden Bug: 22813360 Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
* Computing the visible cell layout area without using the current scrollSunny Goyal2015-07-091-21/+11
| | | | | Bug: 22358433 Change-Id: Ib79d02156b6bfab831fa659637f6113a7f555ba7
* Merge "Using cellX and cellY for comparing position when rank is not ↵Sunny Goyal2015-07-071-1/+17
|\ | | | | | | available" into ub-launcher3-burnaby
| * Using cellX and cellY for comparing position when rank is not availableSunny Goyal2015-07-061-1/+17
| | | | | | | | | | Bug: 22059402 Change-Id: I69ec2b9b68610e171e76cd968de77aaed669672c
* | Using background outline provider as the final provider for reveal animationSunny Goyal2015-07-061-5/+6
|/ | | | | | | | > When two animations are running simultaneously, getOutlineProvider does not give the correct provider Bug: 22166935 Change-Id: I54c9bcd8cf42dd130949ea98e87c77389c02d00f
* Converting folder name to string before applying it to folder infoSunny Goyal2015-06-181-3/+2
| | | | | | > getText() returns Spannable which can contain text styling Change-Id: Iacdf9da47b54b5cd290a355152383d75bf3e6836
* Adding context for app launches.Winson Chung2015-06-021-2/+12
| | | | | Bug: 21492784 Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
* Build fix: Removing FastOutSlowIn interpolatorSunny Goyal2015-06-011-3/+5
| | | | Change-Id: Ia84445285d013fe8da3c895f5264f329f2403890
* Folder UI fixesSunny Goyal2015-06-011-4/+17
| | | | | | | | | | > Fixing top padding (b/21304523) > Alinging the label and page indicators to the icons > Fixing folder label alingment in RTL (b/21445821) > Updating footer animation (b/21336853) Bug: 21304523, 21445821, 21336853 Change-Id: I2cf3a48c76653b19437b31252d6ee559ce798094
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-4/+2
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Refactoring DeviceProfileAdam Cohen2015-05-211-4/+2
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-2/+4
| | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* Fixing issue with folder inflationSunny Goyal2015-05-151-2/+2
| | | | | | > Folder was getting placed at the top left, instead of a custom position Change-Id: Ief279fad1583085c61aaa403e9cbe687da895ae0
* Various lint error fixes.Sunny Goyal2015-05-141-6/+7
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Reodering some drawablesSunny Goyal2015-05-141-10/+0
| | | | | | | | | | | > quantum_panel_shape is xml rectangle with no margin > quantum_panel_bitmap is 9-patch drawable with inbuild shadow and margin > quantum_panel uses xml-shape for lollipop and 9-patch image for lower devices. It includes margin. For shadow, use elevation on lollipop > All drawables have _dark variant > Using #f5f5f5 for panel background, instead of #ffffff Change-Id: Ia7c6cea6d514ee3774fcf5fef6139650bdd53208
* Merge "Animating the folder title & page indicator when a multi-page folder ↵Sunny Goyal2015-05-131-3/+46
|\ | | | | | | is opened for the first time" into ub-launcher3-burnaby
| * Animating the folder title & page indicator when a multi-page folderSunny Goyal2015-05-081-3/+46
| | | | | | | | | | | | is opened for the first time Change-Id: I70f5fd942724251a5e863fbb78a0c24f440b0283
* | Various icon size changesSunny Goyal2015-05-111-2/+1
| | | | | | | | | | | | | | 1) Setting different icon and text size for workspace and all apps 2) Setting padding during BubbleTextView inflation Change-Id: I59da6986b0d98e8e2aa6065743bb799a6bf06a37
* | Merge "Trim all whitespace from titles and labels." into ub-launcher3-burnabyWinson Chung2015-05-111-2/+3
|\ \
| * | Trim all whitespace from titles and labels.Winson Chung2015-05-081-2/+3
| |/ | | | | | | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* | Merge "Using xml-drawable and elevation as folder background" into ↵Sunny Goyal2015-05-111-4/+18
|\ \ | | | | | | | | | ub-launcher3-burnaby
| * | Using xml-drawable and elevation as folder backgroundSunny Goyal2015-05-071-4/+18
| |/ | | | | | | Change-Id: I21376bd3de8cd58c646d0898d5a8303af9057218
* / Accessibility: Folder drag and drop fixesSunny Goyal2015-05-051-0/+3
|/ | | | | | | | > Do not allow empty cells on the last page to be click targets > Make drop targets accessible > Do not close folder on tap outside Change-Id: I7cae20e45097092f41408b888e20b6c40c17d981
* Merge "Updating fling to delete anim" into ub-launcher3-burnabySunny Goyal2015-05-011-1/+2
|\
| * Updating fling to delete animSunny Goyal2015-04-301-1/+2
| | | | | | | | Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
* | Clearing drag state after the close animation is completeSunny Goyal2015-05-011-0/+7
|/ | | | | Bug: 19350802 Change-Id: I048dfa2743692c6c7d56dcacab900ec2d17504ed
* Enabling accessibility drag and drop in folderSunny Goyal2015-04-281-2/+33
| | | | | | | | | | > Moving DragAndDropAccessibilityDelegate to a separate class > Using getFocusedVirtualView() instead of using DownX and downY > Updating various accessibility strings Bug: 19776741 Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
* Goodbye folder sortingSunny Goyal2015-04-271-13/+1
| | | | | | > Removing all traces of folder sorting Change-Id: Id77a7745564c869f5c5c1b3a560bf606fe08b107
* Removing some unused method params from CellLayoutSunny Goyal2015-04-241-1/+1
| | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Moving item to its old position in folder if DnD is cancelledSunny Goyal2015-04-231-1/+10
| | | | Change-Id: I6362ef23b346409e8517a03e63dee974294a3a18
* Updating drop button targetsSunny Goyal2015-04-161-1/+4
| | | | | | | | > Splitting DeleteDropTarget into delete and uninstall > Showing UninstallDropTarget for app shortcuts on workspace > Showing InfoDropTarget only when developer options is enabled Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
* Fixing drag-n-drop for folders in hotseat.Sunny Goyal2015-04-151-3/+23
| | | | | | | | | | | | | | The current drag-n-drop model assums that when a folder is open it completely covers the folderIcon and its not possible to drop anything on the icon. But its not true when a folder is in the hotseat. > When DnD finishes revert folder to the normal state > Ensure that only one folder is open at a time > Prevent folder icon from moving when the folder is open Bug: 13646281,14680549 Change-Id: I016a4c3f0d9b57c388eaa28f40df9e7b7bbab5fc
* Updating folder UISunny Goyal2015-04-091-134/+46
| | | | | | | | | > Removing 2 folder content implementations and merging unscrollable content into FolderPagedView > Disaling folder sorting > Fixing pageIndicator height Change-Id: I36e35e311eaf99b6c69d450c0765bd41b2d68738
* Fixing some RTL issues with scrollable folderSunny Goyal2015-04-071-39/+28
| | | | | | | | > folder name alingment > scroll hint direction > Fake animation direction for icons changing pages Change-Id: Ia17ab2861a6d72c876806427e2de1682976b7671
* Removing ContentObserver from LauncherModel, and calling reloadSunny Goyal2015-04-011-1/+1
| | | | | | whereever necessary Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-17/+18
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Invalidating sorted list after the item has been addedSunny Goyal2015-03-181-1/+1
| | | | | Bug: 19815825 Change-Id: If10d19d41a2400b5a7350e40fa6116494dc9c5a6
* Lazy loading high res iconsSunny Goyal2015-03-171-0/+5
| | | | | | | > Loading low-res icons for icons which are not visible on the homescreen. Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
* Adding sort switch in FolderPagedViewSunny Goyal2015-03-171-6/+22
| | | | | | | | | > Adding options column in DB to store generation purpose flags > Storing isSorted flag in FolderInfo > Adding a switch for A-Z sorting (only visible if pageCount > 1) > When in sorted mode, spring-load snaps to the target location for 1.5 seconds Change-Id: I8c7c778d2cc3ccbd35a2890a1a705e1c1a7e9a66
* Scrolling folder during drag-dropSunny Goyal2015-03-131-4/+188
| | | | | | | | > Show a scroll hint (partial scroll) when the icon is over the last icon (some fraction) > Automatically scroll the folder if the user stays in that position for some time > Rearrance the icons on the new page only after the scroll animaiton is complete Change-Id: I7a2dd85ab23802d647801686df069975d197cd39
* Merge "Initial changes to break out AllApps into its own view." into ↵Winson Chung2015-03-111-2/+2
|\ | | | | | | ub-launcher3-burnaby
| * Initial changes to break out AllApps into its own view.Winson Chung2015-03-101-2/+2
| | | | | | | | | | | | | | | | - Moves launcher state-transition code into its own class - Moves all-apps related code into a separate view/set of classes - Implements a basic list view for all apps Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
* | Adding a dummy method for fix GSA compilation issuesSunny Goyal2015-03-101-0/+6
|/ | | | Change-Id: Iec0ab4faf695b9efd3efd3d3b83d729f430a59eb
* Adding a scrollable folder content implementationSunny Goyal2015-03-091-20/+19
| | | | | | | | > Size is restricted to 3x3 for now > Drag-drop across page s not implemented yet > A-Z sorting is not implemented yet Change-Id: I84328caa6ad910d1edeeac6f3a7fb61b7292ea7e
* Extracting a common interface out of FolderCellLayoutSunny Goyal2015-03-051-49/+92
| | | | Change-Id: Ia94a75ac232b8b425c8befdf2e4f064678531505
* Refactoring folder contentSunny Goyal2015-03-041-310/+123
| | | | | | | | | | | > Refactoring the CellLayout in folder with a custom view so that it can be replaced easily with a scrollable paged view. > Moving some methods from the folder to this new view which assume a single page layout for the folder > Changing folder from LinearLayout to FrameLayout to properly handle focus traversal in case of multi-page folders Change-Id: I073c00b995488f9f5d8123b00357e094ca2cec7c