summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/util
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing folder icon not getting redrawn when the contents changeSunny Goyal2016-04-061-2/+2
| | | | | | | | | | | | > Removing parent from ItemOperator as inconsistant values were being passed in workspace and folderPagedView > Fixing itemChanged causing multiple redraws, by passing a 'animate' parameter to explicitely request animation Bug:27740161 Bug:28015426 Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
* Instead of reloading the launcher, updating items dynamically whenSunny Goyal2016-03-241-0/+31
| | | | | | | Quiet mode changes Bug: 27632028,27763316 Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
* Fixing model being updated on UI threadSunny Goyal2016-03-181-0/+30
| | | | | | | | | | | > When package gets unavailable or suspended, the disabled flag was getting updated on the UI thread. This could lead to inconsistent model if launcher activity didn't exist. > Fixing: When unsuspending one work profile apps, all work profile apps get unsuspended Bug: 27673573,27673373,27403236 Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08
* Creating database without localized collators on NYC and aboveSunny Goyal2016-03-172-1/+28
| | | | | | | | | | | Android automatically creates and maintains a metaData table to store the current device locale. This is used when fetching sorted results. Since Laucher does not require string based sorting on its tables, we can avoid unnecessary IO by disabling this feature Bug: 24608776 Change-Id: I8bbf5ca3abd505be95a85cfc99dd0438966575e9
* Deleting the WallpaperPicker code inside launcher.Sunny Goyal2016-02-181-152/+0
| | | | | | Instead linking it to the packages/apps/WallpaperPicker project Change-Id: Ib6830b180a22c22afece01e0a4f6e94e89d6452b
* Separating out Launcher3 resources from Wallpaper resourcesSunny Goyal2016-02-101-0/+2
| | | | Change-Id: I7e33c83df8b16e8552fe588cadbcf3bf7881cb95
* Extending the grid migration logic to handle density changesSunny Goyal2016-01-061-2/+10
| | | | | | | | For hotseat migratino, we simply drop the items with least weight If the workspace row/column decreases by 2 or more, we clear the whole workspace Bug: 25958224 Change-Id: I7131b955023d185ed10955f593184b9238546dc8
* Merge "Preventing launcher crashes due to low disk space." into ↵Sunny Goyal2015-12-181-0/+128
|\ | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: 60acb943c6 * commit '60acb943c68e2f949fc8ad4703c9156549263897': Preventing launcher crashes due to low disk space.
| * Preventing launcher crashes due to low disk space.Sunny Goyal2015-12-181-0/+128
| | | | | | | | | | | | | | | | | | | | In case of low disk space, all write operations to the IconCache are silently ignored. This will not affect the Launcher behavior and user will still see the latest icons, but in some cases, icon loading would appear slow Bug: 24585352 Change-Id: I85ccc519046fc3708403388bba89e019a3f2ce3d
* | resolve merge conflicts of a50a419b82 to ub-launcher3-master.Sunny Goyal2015-12-111-0/+55
|\| | | | | | | Change-Id: Ie0e233e22284b8ddd2dbb86204e042651b6dfae2
| * Restarting launcher when on font scale changeSunny Goyal2015-12-111-0/+55
| | | | | | | | | | | | | | | | | | Chaning the font scale affects the static device profile and may affect various background threads and static constants. Killing the process ensures that these states get invalidated properly. Bug: 26131935 Change-Id: Idc262ee5d158019e7a2505f8fb9a6413c06bfdeb
* | resolve merge conflicts of 39b700fcc5 to ub-launcher3-master.Sunny Goyal2015-12-041-0/+239
|\| | | | | | | Change-Id: I394258be0c75289cab2f5141c0fb765504527420
| * Merge "Normalizing app icons based on the standard icon guidelines" into ↵Sunny Goyal2015-12-041-0/+239
| |\ | | | | | | | | | ub-launcher3-burnaby-polish
| | * Normalizing app icons based on the standard icon guidelinesSunny Goyal2015-12-021-0/+239
| | | | | | | | | | | | | | | Bug: 18245189 Change-Id: Iaadcddbe3f966733a13b2e1fb60ba09a8b3aef9a
* | | Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polishTony Wickham2015-12-041-15/+29
|\| | | | | | | | | | | | | | | | | | | | am: b88d0bccbe * commit 'b88d0bccbe997e5c45c930698e37f52865bd9210': Cleanup keyboard code.
| * | Cleanup keyboard code.Tony Wickham2015-12-041-15/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should be the last keyboard CL. - Fix bug: couldn't focus All Apps button in some cases when the All Apps column was skipped over. Also added test case for this. - Stop explicitly passing countX and countY to handleKeyEvent, as these had to match the matrix dimensions anyways. - Rename createSparseMatrix() - there were 3 methods of the same name, but all had different purposes. This is confusing both from a readability standpoint and also when looking at stack traces. Change-Id: I08ba8411674fcea43a608856c114dee8dbd22398
* | | Make sure pages are always accessible via left/right arrow keys.Tony Wickham2015-12-031-12/+8
|\| | | | | | | | | | | | | | | | | | | | am: af78b59af1 * commit 'af78b59af19264105b8ce856defa5342d6fd584a': Make sure pages are always accessible via left/right arrow keys.
| * | Make sure pages are always accessible via left/right arrow keys.Tony Wickham2015-12-031-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Handle NextPageFirstItem as first focusable item in reading order - Handle PreviousPageLastItem as last focusable item in reading order - Check the hotseat after the workspace in both cases above - Dpad horizontal navigation (left/right) uses these as a last resort (Rule3) to guarantee an item takes focus if a page exists Note that it is necessary to search for a focusable item because widgets are not yet focusable. Bug: 25591057 Change-Id: I953648bd76c657d660a38427fdd4108bf9963c23
* | | Merge "Add special column for All Apps button in FocusLogic\'s sparse ↵Tony Wickham2015-12-031-37/+71
|\| | | | | | | | | | | | | | | | | | | | | | | | | | matrix." into ub-launcher3-burnaby-polish am: b879abd274 * commit 'b879abd2747c1c1473c8d2b9d9c97707da8218f3': Add special column for All Apps button in FocusLogic's sparse matrix.
| * | Merge "Add special column for All Apps button in FocusLogic's sparse ↵Tony Wickham2015-12-031-37/+71
| |\ \ | | |/ | |/| | | | matrix." into ub-launcher3-burnaby-polish
| | * Add special column for All Apps button in FocusLogic's sparse matrix.Tony Wickham2015-11-101-37/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The All Apps button creates a number of edge cases, mainly because it causes the hotseat to sometimes have an extra column than the workspace. Previously, we sort of swept these problems under the rug by simply ignoring the All Apps button if other icons were present in the hotseat, with the assumption that those other icons should get focus instead of the All Apps button. (If possible, we want to stay in the same column when moving from the workspace to the hotseat.) But this doesn't always work, as in the attached bug where the hotseat doesn't get focus at all when the All Apps button is an obvious candidate for it. By adding a specialized column in the focus matrix for the All Apps button, we ensure that moving down to the hotseat stays within the original column when possible, while also allowing the focus to switch to the All Apps button if appropriate. Furthermore, we take care to skip over the All Apps column when necessary in order to maintain all previous functionality. Bug: 25590522 Change-Id: I5d6a8ee69de8834314c4689246fe7d54329b2eef
* | | resolve merge conflicts of 0c2f0700a5 to ub-launcher3-master.Sunny Goyal2015-11-301-22/+29
|\| | | | | | | | | | | Change-Id: I92f38e9f4ac4d9b6c5a3000e0971d2bc417bd3c6
| * | Only fetching firstInstallTime for an activity when requiredSunny Goyal2015-11-301-22/+29
| |/ | | | | | | Change-Id: Ia16c05718938849f4250802d8770ddfe6dbef055
* | Merge "Make sure user can always get to next page with keyboard." into ↵Tony Wickham2015-11-061-0/+12
|\| | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: 0e2f3849b8 * commit '0e2f3849b84f59ed7c1c4336ca01ac17f096e265': Make sure user can always get to next page with keyboard.
| * Merge "Make sure user can always get to next page with keyboard." into ↵Tony Wickham2015-11-061-0/+12
| |\ | | | | | | | | | ub-launcher3-burnaby-polish
| | * Make sure user can always get to next page with keyboard.Tony Wickham2015-11-051-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a case where hitting the left/right arrow in the first/last column wouldn't give focus to an icon on the next page because it is vertically too far from the first icon to be considered. This makes for a bad user experience, because there is no way to switch pages with the keyboard. So now we brute-force search for an appropriate icon if none was found in this case. Bug: 25434120 Change-Id: Ifdead0e3b458717ccb33e2f0ec7c15f1fcce4b95
* | | Merge "Stop explicitly snapping to page when navigating with keyboard." into ↵Tony Wickham2015-11-061-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: 0f6f2b181f * commit '0f6f2b181fcf28887b343226cef3b263a65621cd': Stop explicitly snapping to page when navigating with keyboard.
| * | Stop explicitly snapping to page when navigating with keyboard.Tony Wickham2015-11-041-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an icon grabs focus, it already snaps to its own page, so the explicit snapToPage() is redundant. And in the case where no icon will grab the focus, the explicit call puts us in a weird state because the page snaps but the focus doesn't change (see bug). (This happens, for instance, if you are moving from an icon on the bottom right of page 1 and the only icon on page 2 is in the top left. In this case, the second icon won't take focus because the angle is too wide according to FocusLogic#handleDpadHorizontal().) Bug: 25434120 Change-Id: I17b0ef7d86426a2599bc948bf2313dca7e112364
* | Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some ↵Sunny Goyal2015-10-301-0/+225
|\ \ | | | | | | | | | us unused methods" into ub-launcher3-master
| * | Refactoring WallpaperOffsetInterpolator to a new fileSunny Goyal2015-10-161-0/+225
| | | | | | | | | | | | | | | | | | Removing some us unused methods Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
* | | Don\'t add cells to FocusLogic sparse matrix if they aren\'t focusable.Tony Wickham2015-10-221-6/+18
|\ \ \ | | |/ | |/| | | | | | | | | | | | | am: df315180f0 * commit 'df315180f0653702b470beea62f27927e45fab4b': Don't add cells to FocusLogic sparse matrix if they aren't focusable.
| * | Don't add cells to FocusLogic sparse matrix if they aren't focusable.Tony Wickham2015-10-211-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, any child of ShortcutAndWidgetContainer was added to the matrix, causing widgets (which aren't focusable) to be considered as potential targets to gain focus when an arrow key was pressed. But if the algorithm chose them, they couldn't take the focus so nothing happened (i.e. the focus stayed on the app/folder it was on before). Bug: 25126768 Change-Id: Id55fc310f7f58fb8795cce51dcefe4fd1210f788
* | | Fix regression where keyboard couldn\'t switch between workspace pages.Tony Wickham2015-10-201-3/+3
|\| | | | | | | | | | | | | | | | | | | | am: c2bc0ef1c3 * commit 'c2bc0ef1c313698fd931fc84ec2f11882c38cdba': Fix regression where keyboard couldn't switch between workspace pages.
| * | Fix regression where keyboard couldn't switch between workspace pages.Tony Wickham2015-10-201-6/+3
| | | | | | | | | | | | | | | Bug: 25122302 Change-Id: Id1d7628753ce7ef37af50e8594e541dcb6bea13e
* | | resolve merge conflicts of fe3db428ab to ub-launcher3-master.Sunny Goyal2015-10-201-3/+2
|\| | | |/ |/| | | Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
| * Refactoring getPreferenceKey methodSunny Goyal2015-10-201-3/+2
| | | | | | | | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
| * Moving a few testing classes to a separate packageSunny Goyal2015-10-071-0/+73
| | | | | | | | Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
| * Merge "Jailing the saved instance state of all the dynamically generated ↵Sunny Goyal2015-10-051-0/+52
| |\ | | | | | | | | | views" into ub-launcher3-burnaby-polish
| | * Jailing the saved instance state of all the dynamically generated viewsSunny Goyal2015-10-051-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using itemId instead of generating a new id for each item. This is because if the process gets killed, View.generateId will get reset but we will still receive the generated item id map in onRestoreInstance. This will cause conflicts with newly generated item ids. We wrap all the generated homescreen views inside a single sparse array. This ensures that we do not cause any conflict with dynamically generated views in other parts of the UI. Bug: 16840760 Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240
* | | resolved conflicts for 1845049c to ub-launcher3-masterWinson2015-10-071-1/+1
|\| | | | | | | | | | | Change-Id: I25a01a0735be754f4c8daef5a4a04eaec651b95c
| * | Replace Long.compare() with implementation.Winson2015-10-011-1/+1
| |/ | | | | | | | | | | - Long.compare() was added in API level 19. Change-Id: Ic7020c941403c10daa6feacdc737c6a82676ada0
* | Merge "Moving a few testing classes to a separate package" into ↵Sunny Goyal2015-09-211-0/+73
|\ \ | | | | | | | | | ub-launcher3-master
| * | Moving a few testing classes to a separate packageSunny Goyal2015-08-191-0/+73
| | | | | | | | | | | | Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
* | | Merge "Refactoring deferred bind logic" into ub-launcher3-masterSunny Goyal2015-09-181-0/+96
|\ \ \
| * | | Refactoring deferred bind logicSunny Goyal2015-09-151-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > Using ViewTreeObserver to listen for onDraw instead of overriding onDraw in workspace > Loader passes the list of deferrerd runnables to launcher Change-Id: Ie4877f746c96e9497396de8089f00f70bf867e17
* | | | Flinging to the left deletes when in vertical bar layout mode.Tony Wickham2015-09-161-2/+30
|/ / / | | | | | | | | | | | | | | | | | | This mode has the remove icon on the left side, so flinging to the left makes more sense. But flinging up still works in either case. Change-Id: I7ab40776b67659026f03f81efd43fae3375b5ba0
* | | Jailing the saved instance state of all the dynamically generated viewsSunny Goyal2015-08-271-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using itemId instead of generating a new id for each item. This is because if the process gets killed, View.generateId will get reset but we will still receive the generated item id map in onRestoreInstance. This will cause conflicts with newly generated item ids. We wrap all the generated homescreen views inside a single sparse array. This ensures that we do not cause any conflict with dynamically generated views in other parts of the UI. Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240
* | | Merge "Moving drag-drop related code into a separate package." into ↵Vadim Tryshev2015-08-201-2/+2
|\ \ \ | |/ / |/| | | | | ub-launcher3-master
| * | Moving drag-drop related code into a separate package.Vadim Tryshev2015-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl". I'm not moving DragSource because it's referred from gsa code. Bug: 22609426 Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
* | | Updating logic for setting wallpaper desired sizeSunny Goyal2015-08-191-28/+53
|/ / | | | | | | | | | | | | | | | | > Only setting desired size on wallpaper change for pre kitkat > Removing wallpaper change receiver from manifest > Removing multi-process wallpaper shared prefs for kitkat+ Bug: 23353784 Change-Id: Iba72d32871ee50b75807e2284a73a691bcddc472