summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InvariantDeviceProfile.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug where changing the display size does not update the launcher grid.Jon Miranda2019-05-281-1/+3
| | | | | | | | | | | | | | | | | | The bug is caused by launcher saving the grid name and using that grid name to look for matching display options. This makes sense when changing the grid size, but doesn't work well when changing the display size. Example: Initial Pixel display size is set to Default, so we save "normal" as the KEY_IDP_GRID_NAME. When we change display size to Largest, the KEY_IDP_GRID_NAME is still "normal" and so we only look at display options under "normal". Before this, Pixel with display size set to Largest would be set to "reasonable". This should be safe change for Q, and we can have a proper fix when we officially support changing grid size. Bug: 131867841 Change-Id: If5f3b0a13b90069973e929024b26bd9b9c45a7d8
* Not using magic constants for navbar heightvadimt2019-05-081-1/+1
| | | | Change-Id: I6783b8a2ebb059ce35748d8c3e818cbe732ff40d
* Adding utility method to get adaptive icon scaleSunny Goyal2019-05-031-2/+2
| | | | Change-Id: I5ff190c3b794bb13309375782ccd420e85b59091
* Rename launcher:iconSize attribute to prevent overriding materialRyan Mitchell2019-04-241-1/+1
| | | | | | | | | | | | | | | | | | | A previous change [1] introduced the material library as a static library for the SecondaryDisplayLauncher. The material library defines a resource "attr/iconSize" with format="dimension" while Launcher3 defines a resource of the same name with format="float". The material resource is being overriden by the Launcher3 resource and is preventing aapt2 from disallowing multiple definitions of the same attribute with different formats. This change renames the Launcher3 iconSize so it will not collide with the material resource. [1] If183dd35a1d197c4a9a8225a021e36c4f1662587 Bug: 129146717 Test: build success and inspection of generated apk Change-Id: I5eb54ea606ddcfb47d5150b44906a8707203e905
* Listening only for "android" package for overlay changesSunny Goyal2019-04-221-5/+3
| | | | | Bug: 130917995 Change-Id: I37160a886a0afdc02dca8f7da6e8aa54c795882d
* Removing some redundant resource definitionsSunny Goyal2019-03-221-0/+8
| | | | Change-Id: I68ae602116e6eb334dfce2a013fcc42068c464bf
* Move overlay monitoring logic out of config monitorHyunyoung Song2019-03-191-0/+25
| | | | | | Bug: 126417894 Change-Id: I5b474a2a41bbd951fa0a99673fa8bf4342adade5
* Updating folder shape when icon shape changesSunny Goyal2019-01-231-0/+5
| | | | | | | > Removing unnecessary threading logic and the code was running on main thread anyway Bug: 118757840 Change-Id: I7a012db5a0dbe2c23bd6ff2cd39679a803731ee8
* Adding API to set the current gridSunny Goyal2019-01-111-2/+10
| | | | | Bug: 122262084 Change-Id: Ie356d4a90cf1e5a3715fde62cd3502384856e8b5
* Adding content provider for exposing launcher grid settingsSunny Goyal2019-01-091-6/+14
| | | | | Bug: 122262084 Change-Id: I3e89e0a9400fb3e81f932af3606eb49c36d34894
* Merge "Adding support for putting arbitary attributes in ↵TreeHugger Robot2019-01-091-0/+20
|\ | | | | | | InvariantDeviceProfile" into ub-launcher3-master
| * Adding support for putting arbitary attributes in InvariantDeviceProfileSunny Goyal2019-01-071-0/+20
| | | | | | | | | | | | | | This would allow derivative projects to profile profile specific customization options Change-Id: Id4703dc54d649a8d8a930f72c836c4ec23ffc45d
* | Refresh icon cache for recents when rro overrides the adaptive icon pathHyunyoung Song2019-01-091-0/+4
|/ | | | | Bug: 122472687 Change-Id: I646c3918480740ea322e60252e3ceb006964567f
* Refresh icon cache when icon shape path has changedHyunyoung Song2019-01-041-11/+50
| | | | | | | | | | | Bug: 120505990 $ adb shell cmd overlay enable --user 0 com.android.theme.icon.roundedrect $ adb shell cmd overlay disable --user 0 com.android.theme.icon.roundedrect $ adb shell cmd overlay enable --user 0 com.android.theme.icon.teardrop $ adb shell cmd overlay disable --user 0 com.android.theme.icon.teardrop Change-Id: I06663b9727f7434aae737d39977f1e6cf09bffbf
* Fixing use of new API available only on API 24Sunny Goyal2019-01-021-13/+2
| | | | Change-Id: Iaf29d46925c45eeda485f882c1f59841fc3cfcea
* Changing the format for device profile definitionSunny Goyal2018-12-071-106/+179
| | | | | | | | | Device profiles are defined such that the grid size is fixed and only the icon and text sizes change. For every grid size option there are multiple display configurations. Bug: 118758696 Change-Id: I54aac9106c576324b02530913c447e849b4ae1da
* Handling configuration changes at runtime instead of killing the processSunny Goyal2018-10-191-9/+62
| | | | Change-Id: I0c7f7e58ddb690f371c257b6142a4e918e9acb7f
* Migrating to android-xSunny Goyal2018-08-141-1/+2
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Retiring some feature flagsSunny Goyal2018-07-101-12/+0
| | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* Lazy loading LauncherAppStateSunny Goyal2018-07-031-3/+9
| | | | | | | Separating InvarantDeviceProfile out of LauncherAppState and creating LauncherAppState only when it is actually used Change-Id: I2ee55f53cae01f11203f94675bb5f70c65ad2b9d
* Adding fallback recents activitySunny Goyal2018-03-131-3/+5
| | | | | | | | > Refactoring RecentsView to a common base class > Moving some dependency form Launcher to BaseActivity > Using the Recents view in RecentsActivity Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
* Removing launcher dependency when logging quickstep interactionSunny Goyal2018-02-221-2/+2
| | | | | | as Launcher may not be ready when the touch gesture completes. Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
* Removing support for app prediction from Launcher3Sunny Goyal2018-01-301-11/+2
| | | | | | | Derivative projects can extend the FloatingHeader to add support to custom content in all-apps screen. Change-Id: I4e29221a72e5a077a756713a6774cda7ecde8f1b
* Demo mode default layout supportAdam Cohen2017-09-291-3/+8
| | | | | | 67062454 Change-Id: Ic060d3d7dba4fffe688dddf7cd04c48e4baaf813
* Landscape grid changes for Workspace/All Apps.Jon Miranda2017-06-231-13/+8
| | | | | | | | This is the just first CL to get eyes on the changes. Next CL will update the All Apps to be full width. Bug: 37015359 Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
* resolve merge conflicts of 40dfa3bf6 to ub-launcher3-masterSunny Goyal2017-03-271-18/+0
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Iee500631827ebc48c63c203fdcd0de888adcb135
| * Revert "Adding some logging around launcher grid when device profile changes"Sunny Goyal2017-03-201-18/+0
| | | | | | | | | | | | | | Bug: 35425060 This reverts commit c29de857807680bf72ebd386cbec716b33d64780. Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
* | Merge "Make landscapeProfile and protraitProfile public." into ↵Justin Cui2017-03-201-2/+2
|\| | | | | | | | | | | | | | | ub-launcher3-dorval am: b00fcd4e49 Change-Id: Ie62cdf16f27edf46e5b2bbec81873b99f124bb48
| * Make landscapeProfile and protraitProfile public.cuijiaxing2017-03-201-2/+2
| | | | | | | | | | | | This is needed to make prediction sticky: b/21654652 Change-Id: Ie8cb77ed9cbf1bf5b164828d0c4335111039e7c5
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-2/+1
|/ | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* Adding some logging around launcher grid when device profile changesSunny Goyal2017-02-151-0/+18
| | | | | Bug: 35349518 Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-181-0/+6
| | | | | | | on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
* Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-0/+5
| | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* Initial changes to tweak layout.Winson2016-07-201-5/+1
| | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Defining the list of predefined device profiles in xml.Sunny Goyal2016-07-071-32/+44
| | | | | | This allows the profiles to be easily customized by derivatives. Change-Id: Iaec2b7a0eda34581c8e48b7dc44817013632dabe
* Adding a flag (enabled by default) to remove the all-apps button.Sunny Goyal2016-06-171-4/+13
| | | | | | | All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
* Removing dependency on wallpaper size settings from launcherSunny Goyal2016-03-171-0/+42
| | | | | | | > Moving wallpaper desired width calculation to xml Bug: 14470153 Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa
* Adding support for migrating the grid between any two valid screens sizes.Sunny Goyal2016-01-201-1/+1
| | | | | | | | The grid is migrated in steps where each step consists of at max one column change and at max one row change. Adding some unit tests for GridMigrationLogic Bug: 25958224 Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
* Merge "Extending the grid migration logic to handle density changes" into ↵Sunny Goyal2016-01-071-2/+2
|\ | | | | | | ub-launcher3-master
| * Extending the grid migration logic to handle density changesSunny Goyal2016-01-061-2/+2
| | | | | | | | | | | | | | | | 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
* | Adding support for negative x and y in layout xml.Sunny Goyal2015-12-181-3/+3
|/ | | | | | | | | | | Fixing default configurations for some screen sizes. > Negative values for x and y are parsed as distance from end column and row respectively. e.g. (-1, -2) => (3, 2) in a 4x4 grid Bug: 26110981 Change-Id: I4ca30e225ed6e2a31610ab23235d2cd10e8d317c
* Normalizing app icons based on the standard icon guidelinesSunny Goyal2015-12-021-4/+4
| | | | | Bug: 18245189 Change-Id: Iaadcddbe3f966733a13b2e1fb60ba09a8b3aef9a
* Adding margin to Drag layer instead of checking for right insets at every placeSunny Goyal2015-12-011-7/+0
| | | | | Bug: 25692432 Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752
* am d6b4037b: Grid adjustments, specifically for Ryu.Tony Wickham2015-10-091-3/+3
|\ | | | | | | | | * commit 'd6b4037b093445fefa7d036da339dd549fae7a9b': Grid adjustments, specifically for Ryu.
| * Grid adjustments, specifically for Ryu.Tony Wickham2015-10-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | > Less than 14% of the screen is used for left/right workspace padding. (To be clear, this means 7% for the left and 7% for the right.) > Hotseat icons are the same size as workspace icons. > Far left and right hotseat edges line up with workspace edges. > All Apps button is scaled down 8dp. Bug: 24003478 Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
* | Using 23 instead of Build.Versoin.M until the final SDK is available.Sunny Goyal2015-10-081-2/+1
| | | | | | | | Change-Id: I9f8f6fe049afcd0ceb0797ddc803a2e77bab0437
* | Merge "Fixing overscroll effect when the navigation bar is opaque" into ↵Sunny Goyal2015-10-071-1/+8
|\ \ | | | | | | | | | ub-launcher3-burnaby-polish
| * | Fixing overscroll effect when the navigation bar is opaqueSunny Goyal2015-09-221-1/+8
| |/ | | | | | | | | | | | | | | | | | | The navigation bar is opaque on mobile devices in landscape mode. Launcher should ignore the right insets and draw the edge effect appropriately. Also draw the black bar under the navigation bar, just in case we assume it to be opaque, but it was not actually opaque. Bug: 18526657 Change-Id: I1d49dcb82b8a5ee25009bc738cd9b8c0c5c88263
* | Merge "Fixing other missing cases of truncated sorts." into ↵Winson Chung2015-09-301-2/+2
|\ \ | | | | | | | | | ub-launcher3-burnaby-polish
| * | Fixing other missing cases of truncated sorts.Winson2015-09-291-2/+2
| |/ | | | | | | | | Bug: 24505761 Change-Id: I9b9358e8b134f0c4aac32ac536d9c8a1f0629957