summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Enable HW Layers in app drawerScott Mertz2015-10-311-0/+11
| | | | | | | | | | HW Layers were taken out in the initial commit for Trebuchet app drawer transitions. These transitions don't scale for large resolutions when using software composition. Switch back to HW layers. Change-Id: I26fcca8545cc187a29388287071568b5cd9d642b
* trebuchet: ensure not overlaping shorcuts with dockbar items when searchbar ↵Jorge Ruesga2015-10-301-15/+50
| | | | | | | | | | | | is invisible Instead of just animate Y position (http://review.cyanogenmod.org/#/c/114712/), also animate height to guarantee the same bottom position. This gives spaces for the drop target bar and dock bar to don't overlap with the workspace Change-Id: I85e655f320237588cf895589a013ead28118f102 JIRA: NIGHTLIES-1955 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* trebuchet: ensure not overlaping shorcuts and drop items when searchbar is ↵Jorge Ruesga2015-10-244-2/+26
| | | | | | | | | | | | | | | | invisible If searchbar is hidden (via settings) in portrait mode in no tablets devices, the first row of shortcuts overlaps the drop target view, which made impossible to positioning the drag shorcut in the same cell because is ocuppied by the remove drop target. This change, in the conditions described previously, animates the workspace to ensure the drop search bar has enough space without overlapping the workspace layout. Also give an extra padding (edgeMarginPx) to the workspace when searchbar is present. Actually, the search bar and the first row of shortcut icons are too much closed. Change-Id: I9bc5e42852b83a5445beb01bd3bdece9f82074b5 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet : Switch to LOGD instead of isLoggableDanesh M2015-10-151-1/+1
| | | | | | | | isLoggable imposes a 23 character limit. CYNGNOS-1194 Change-Id: I9d2ecd9cf9ca9b40ed68a88a8fd60bc414af1280
* Trebuchet: make workspace layout configurable by prebundled mccYvonne Wong2015-10-092-3/+101
| | | | | issue-id: PAELLA-42 Change-Id: Ice4f73ee6ebaa55e27c07a02f1cc5b989f91c59a
* Trebuchet : Ensure workspace icon migration for dialerDanesh M2015-10-082-1/+85
| | | | | | | Ensure dialer workspace icon migration for c-apps package. CYNGNOS-1194 Change-Id: Id6535f5e8c5b16350666f75dda771311a49fe66b
* trebuchet: protect against npeJorge Ruesga2015-10-011-1/+1
| | | | | Change-Id: I14427057c4caf6e9d645944a4b1039343767d4d6 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* fix NPE when dragging icon to desktop, when QuickSearchBox is missingDavid Čížek2015-10-011-2/+4
| | | | Change-Id: I82003c814a0f685d3d7781c79b6725cb49ec6530
* Trebuchet: Use hardware layer for fading app drawerLinus Lee2015-10-011-0/+26
| | | | | | | | * Apparently this isn't a hardware layer by default, so performance can be really bad on certain devices. REF: CYNGNOS-1169 Change-Id: I0acc9d4f9bfb5defba902edefced08e035377f28
* Trebuchet : Ensure search bar doesn't show in hiddenDanesh M2015-09-303-8/+16
| | | | | | | | If the user is in the app drawer, or settings panel mode, a broadcast could cause a new search target bar to be added which would reset visibility. Ensure visibility is restored. Change-Id: I9eba1eb6ac36bc9873deab1b81e1bb00ee8d4999
* App Drawer: fix insets on paddingTopRaj Yengisetty2015-09-301-2/+6
| | | | | | | | | Repro: - Use vertical app drawer - Hold scrubber and move to the top of the app list - Observe: white space above the first element in the list view Change-Id: If14b1e9668c88a42e1069e8096ddc04861397d07
* Trebuchet : Update grid + cancel drag on searchablesChangedDanesh M2015-09-291-1/+4
| | | | Change-Id: Iaceebeebc03ab6e0dbd0fcac3a7e5e2265319c0c
* Trebuchet : Fix drawer inset & search visibilityDanesh M2015-09-292-1/+2
| | | | | | | | | | - If we receive INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED/INTENT_ACTION_SEARCHABLES_CHANGED we call bindSearchablesChanged which re-adds a search bar and doesn't restore visibility. This patch ensures we don't show the search bar when its not suppose to. - Don't increment margins, since there is no guarantee that the method is only invoked once. Change-Id: I4054a2aaba50a3692c6059afe8efe9796fcd68f4
* Trebuchet: fix NPE when QuickSearchBox is missingmartincz2015-09-301-5/+7
| | | | Change-Id: I8eb1e02907d1e7f56d43dbff3b2fed1e0846d990
* Trebuchet : Fix insets for panelsstaging/catchupDanesh M2015-09-284-8/+119
| | | | Change-Id: I001a3c87ef2226f6a241b9538c0157b310961978
* fix buildNick Kralevich2015-09-271-1/+1
| | | | | Bug: 18040469 Change-Id: I2938c7b950470eeacfb20391f109ae44d95060c7
* Avoid db exception on L and aboveAdam Cohen2015-09-271-4/+2
| | | | | | Bug 18554839 Change-Id: I43f391b7cc376f697ce7b5b363e8be3aa85814b5
* Fixing wrong package check when adding shortcutsSunny Goyal2015-09-271-1/+1
| | | | | Bug: 18571789,18535867 Change-Id: I2544fa634879846d812b00f8649520400f66d29e
* Ensure that FirstFrameAnimatorHelper doesn't set play time when animation is ↵Adam Cohen2015-09-271-3/+5
| | | | | | | | complete Bug: 18567716 Change-Id: I656e869b8553d650916c2abe6dc83282c8b6fd65
* Ignoring specific db exception to workaround Bug. 18554839.Winson Chung2015-09-271-8/+20
| | | | Change-Id: I80f2dd62297eea671f2d129ae22263e72e506ae4
* Don't try to create an app state instance during restore.Chris Wren2015-09-272-15/+15
| | | | | | | Added a static utility function to get the DeviceProfile instead. Bug: 18504164 Change-Id: Ia510a84f1c195e58acf3bf4d1f6a42c739fdd413
* Disabling auto addition of managed profile shortcutsSunny Goyal2015-09-271-3/+6
| | | | | Bug: 16188104 Change-Id: Ib6464c22140df6d60112eb35f5983718b3db6288
* Fix a couple regressions from resetting AppsCustomizeTabHostAdam Cohen2015-09-274-5/+13
| | | | | | | Bug 18409435 Bug 18358080 Change-Id: I07a071342b5c5e062ab2bb562b672d93ba0d5c2e
* Prevent multiple workspace state animators from being startedAdam Cohen2015-09-271-0/+14
| | | | | | | | | | | | -> Probably an issue with the way we're wrapping ViewPropertyAnimator which can lead to us acting like it's valid to have multiple instances of a VPA. In reality I think this is very problematic. -> For now, we can just make sure the previous animation is canceled if it hasn't yet completed. Bug 18428886 Change-Id: I097eec08ec68ed098e68866fb5eda72734c51b00
* Clearing DB before restore starts.Sunny Goyal2015-09-271-6/+16
| | | | | Bug: 18362052 Change-Id: Ic4faf04db2f76c0c434907f1c41c8b708283eeb7
* Add callback which got missed in refactorAdam Cohen2015-09-271-2/+11
| | | | | | Bug 18418855 Change-Id: Ia3a1cec76721bbbc118dd7389b5e960802a64b88
* Adding a few null checks.Sunny Goyal2015-09-273-4/+10
| | | | | | | | | | 1) During migration, if launcher2 has deleted user data, migration oes not happen 2) If Launcher3 does not has bind widget permission, QSB would be null. Bug: 18388507 Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
* Fixing NullPointer Exception when user is deleted.Sunny Goyal2015-09-271-0/+3
| | | | | Bug: 18388507 Change-Id: I4176ea37a019c2a862e6b2875cc6b03ec9118571
* Adding shortcuts corresponding to ManagedUsers automatically.Sunny Goyal2015-09-274-217/+331
| | | | | Bug: 16188104 Change-Id: Ic07578dd187263f59f3c431cbb78dea90d0c24f4
* Removing some duplicate methodsSunny Goyal2015-09-273-19/+8
| | | | Change-Id: I8a1295ab74890984e8d8508aaa18fd79ac2a032d
* Using the default search widget in Launcher3Sunny Goyal2015-09-2710-950/+99
| | | | | | | | | | > Removing all logic related to search and voice overlays from Launcher3 > Using the widget provided by global search provider on the homescreen > Removing VoiceButtonProxy, as it is not being used anymore Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
* Removing InstallWidgetReceiver related obsolete code.Sunny Goyal2015-09-271-190/+0
| | | | Change-Id: I61700b363f8af6434e750bcb5323e0ad4e5bf011
* Clearing some android list errors/warnings.Sunny Goyal2015-09-272-15/+1
| | | | Change-Id: I2f1f991e61f9e41644ee9943f5a1a15971cca6c1
* Overlay shouldn't show up above Intro screenAdam Cohen2015-09-271-6/+17
| | | | | bug: 18173340 Change-Id: Icf738a55398023ab6bad5cced05b25e053dec0a2
* Adding a couple memory optimizations to LauncherAdam Cohen2015-09-274-10/+22
| | | | | | | | | -> Always dispose of widget page views when leaving the activity. These pages hold onto many bitmaps. -> Clear database cache when leaving the activity. Bug: 17967108 Change-Id: I10ebaaed14e7cd86f09a9afcabd73043705f21b8
* Moving methods which update internal sets on a separate threadSunny Goyal2015-09-271-7/+24
| | | | | Bug: 18152117 Change-Id: I5fccd203b5fe65e79dcc5aead6cb1cb6c3b622fe
* Failing restore, if we have an item outside screen boundsSunny Goyal2015-09-271-15/+62
| | | | | Bug: 17552590 Change-Id: I2d25847fd05d9579bc29ccbfa62e34809d4855d1
* Make sure DragLayer layout params are of the correct typeAdam Cohen2015-09-272-5/+33
| | | | | | bug 18141419 Change-Id: I50695a62cf9e1f25c054ac2c7197cd056d54cfae
* Updating backup restore logicSunny Goyal2015-09-276-106/+128
| | | | | | | | | | | | | | | > Adding DeviceProfile information in the backup > Removing SharedPreference backup > Adding helper methods to abort backup in the middle > Comparing keys against the backup journal during restore to avoid restoring corrupt/lost entries > Old backups are still compatible, but lost keys verification will be ignored in that case. Bug: 17937935 Bug: 17951775 Bug: 17260941 Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19
* Loading internal default layout if partner layout fails to loadSunny Goyal2015-09-271-12/+17
| | | | | Bug: 18033885 Change-Id: I8399d0107cc3570c0e03d833601abf2cd194b3d3
* Fix edge case where LauncherOverlay scroll woudln't be resetAdam Cohen2015-09-271-2/+11
| | | | | | | | -> If the Workspace has a single page and the user goes from overscrolling in one direction, and then the other, the LauncherOverlay scroll wouldn't be set to 0 until the scrolling settled Change-Id: I29ee9abdfa023ae3599d1590cdaebf457e2220fa
* Add InsettableFrameLayout layout params to easily ignore insetsAdam Cohen2015-09-271-7/+51
| | | | Change-Id: I117fc34627e24ea5f909c3c87e9c2dbca46babb6
* Tweaking close AllApps / Widgets on KK and belowAdam Cohen2015-09-271-5/+5
| | | | | | Bug: 17956862 Change-Id: I83b8973b7e98c1c3660221ac65dcb9ca8b4c84fd
* Was seeing some duplicated icons in the migration flowAdam Cohen2015-09-271-1/+5
| | | | | | | -> The only delta between the two icons was slightly different flags -> No need to consider flags for the purposes of duplication Change-Id: I161f6ad6023d829e5ebbb15f1a9fbc9306795d80
* Allow LauncherOverlay to access and manage insetsAdam Cohen2015-09-278-75/+147
| | | | Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
* Disabling restore for below L devicesSunny Goyal2015-09-271-0/+6
| | | | Change-Id: I262f52e88421637e0d50c048f6d53c6b5754da4e
* Refactoring LauncherBackupHelper.javaSunny Goyal2015-09-271-390/+222
| | | | | | | > Moving a bunch of variables to Global level to make it easier to maintain state. Change-Id: I9ded313bd4f673f45c61556b8c66607dc78a5ae9
* First pass of the Launcher Overlay interface / implAdam Cohen2015-09-277-42/+597
| | | | | | | -> Added simple reference launcher extension -> Make launcher able to handle a null qsb Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
* Removing AccessibleTabView and some other dead code.Sunny Goyal2015-09-272-259/+0
| | | | Change-Id: Ia122a6277f924e6077dbf15a4dc40b5042aa987d
* Refactoring layout parsing codeSunny Goyal2015-09-273-750/+456
| | | | Change-Id: Iee5b2280cb1e841bcfe91fdcf523de6fa7f7f3b8