summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutAndWidgetContainer.java
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring DeviceProfileAdam Cohen2015-05-211-6/+6
| | | | | | | | | | | | | | | | | | | | -> 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
* Various lint error fixes.Sunny Goyal2015-05-141-5/+1
| | | | | | | | > 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
* Removing some unused method params from CellLayoutSunny Goyal2015-04-241-8/+0
| | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Fixing folder focus logicSunny Goyal2015-04-161-1/+1
| | | | | | | | | | > Folder items no longer remain in a linear order when a folder gets rearranged, and se we need to use createSparseMatrix instead of createFullArray. Also because of this we need to use getChildAt(x, y) instead of getChildAt(index) > Removing traces of AppsCustomizePage (all apps) from FocusHelper Change-Id: I9007f6b95cb823e27ef4a43ce725fda8ef1b7cf8
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-0/+9
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Initial changes for new clings. (Bug 11142616)Winson Chung2013-10-091-0/+7
| | | Change-Id: Id66ebceb99449941921d9e617dfe0cc05a2e3b65
* Ensuring that we offset cell items by their destination cell padding. (Bug ↵Winson Chung2013-10-081-1/+8
| | | | | | 10881814) Change-Id: Idc16ae64b1a0e7f79b8a3ff5da6854fbab7867d2
* Don't measure GONE views.Vladimir Marko2013-10-071-1/+3
| | | | | | | | | Don't measure GONE views in ShortcutAndWidgetContainer and PagedView. They will not be processed in onLayout anyway. This is pre-requisite for avoiding costly onMeasure in GEL. Bug: 10734110 Change-Id: I4c1bef41d9185af5eda42b43371546c60f341f87
* Fixing some grid spacing issues. (Bug 10754537, 10754538)Winson Chung2013-09-191-1/+2
| | | | | | | - Ensuring app names don't run into each other in folders and on the workspace - Ensuring that app names are aligned with folder names Change-Id: Ie8d546eacd52005778d81c46011c1c84bc24118c
* Fix crash when setting wallpaperMichael Jurka2013-09-051-3/+0
| | | | | Also clean up some unused code Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
* Initial Changes for Dynamic GridWinson Chung2013-08-201-2/+23
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Giving custom content full screenAdam Cohen2013-07-231-5/+14
| | | | Change-Id: Icd104fff8a1a315b795a60b812048a6218bf0e5a
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+204
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b