summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Implement placeholder icons for remote folder.Artem Shvadskiy2016-01-139-57/+132
| | | | | | | | | | | | | | | | | | Patch 1: Unfinished temporary commit before rebase. Patch 2: Rebase. Patch 3: 1. Add additional RemoteFolderManager hook for drawer adapter setApps(). 2. Replace method arguments in drawer adapter from ArrayList to List, which allows us to use Collections.singletonList(), which is more memory efficient. 3. Allow folders to batch remove a subset of their entries. 4. Remove unused remote flag in ShortcutInfo. Patch 4: Fix placeholder animation for folder and folder icon. Patch 5: Remove unused import. Patch 6: Move app drawer bg color to overlay. Change-Id: I5ae3b976e2d04dcfbe5ea2e563ef94dcae48b7d4 issue-id: CYNGNOS-1329
* Trebuchet: RemoteFolder make sure vanilla CM compiles without overlayTyson Miller2016-01-121-1/+4
| | | | Change-Id: I4593a11c204d69067b30695d57f386a88375b64c
* Trebuchet: RemoteFolder: fix folder increasing top margin & adjust badge ↵Tyson Miller2016-01-111-0/+2
| | | | | | position Change-Id: Iea364efc9ab96df1f223ae2dcb9c0a64ac175bbf
* Trebuchet: Remote Folder UX & early badge codeTyson Miller2016-01-084-63/+70
| | | | | | | | | | | | | Patch 8: Fixed manifest & makefile config 9: Updated caching for RemoteFolder info 12: FolderIcon updates for RemoteFolder 13: RemoteFolder UX and minor code fixes 15: UX and rebase on metrics code 19: Fix content clicks and clean up 20: Wi-Fi check added Issue-Id: :CYNGNOS-1332 Change-Id: I3b86ed71b95da69488a4eee6c7c4b5fae4411388
* Implement RemoteFolder metrics.Artem Shvadskiy2016-01-0412-440/+122
| | | | | | | | | | | | | | | | | | | | | | Additional changes: 1. Refactor drawer code to move xml and implementation out of trebuchet. 2. Move RemoteFolderUpdater to overlay, no stub class needed. 3. Pull TrackingEvent.Category out into EventCategory, and create overlay. 4. Remove old sync code from Folder. 5. Prevent RemoteFolder from inserting shortcuts into the database. All remote items will exist in memory only. 6. Move RemoteFolder into overlay, and have manager create an instance for FolderIcon. 7. Move folder sync out of LauncherModel. Patch 2: Re-add shortcut click handling in Folder and move EventCategory back into TrackingEvent.Category. Patch 3: Remove whitespace/javadoc/import changes. Change-Id: Ifc648f231bf6f6f35d8be45f8885f741b7539487 issue-id: CYNGNOS-1330
* Add remote apps to application drawer.Artem Shvadskiy2015-12-217-198/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch 2: 1. Use isRemote() method instead of checking flag manually. 2. Launch remote app directly through intent, bypassing regular app logic. 3. Pull syncing code out of LauncherModel and into RemoteFolderManager. 4. Check setting before loading apps. 5. Delete old apps before loading new ones. 6. Add/remove directly from AppDrawerListAdapter, since we are not sure if we want remote apps to show up in Google-style paged drawer. 7. Get number of columns for drawer, so we always load just enough to fill one row. Patch 3: Remove old ArrayList from LauncherModel. Patch 4: 1. Update redlines. 2. Clean up layout/dimens. 3. Add custom scrubber icon for remote apps. 4. Apply custom styles to remote header. TODO: Implement info icon click event, and replace remote apps based on updater cache status. Patch 5: Clean up app_drawer_item.xml Patch 6: Rebase. Patch 7: 1. Add forgotten rebase method to RemoteFolderManager stub. 2. Apply default styles to app_drawer_item and don't bother checking to apply styles unless remote folder is enabled. 3. Minor redline fix. Patch 8: Add larger bottom margin to remote header. Patch 9: 1. Create new view type for custom header to avoid on click bug. 2. Refactor custom style to apply on view holder creation, instead of on bind. 3. Add click event for custom header icon. Change-Id: If123d7ac82a0af0fa171fa3408b6c2f1f8a48b7b issue-id: CYNGNOS-1380
* 1. Move RemoteFolderManager and RemoteFolderUpdater into launcher3 packageArtem Shvadskiy2015-12-155-187/+28
| | | | | | | | | | | and move RemoteFolderManager implementation to overlay. 2. Modify settings to hide remote folder preference on CM builds. 3. Remove remote folder from default workspace. Change-Id: I6cc3409cf0a9ada68779c41e62f46bc08f2f9ad4 issue-id: CYNGNOS-1429
* Prevent remote folder from accepting or removing items by user.Artem Shvadskiy2015-12-092-0/+10
| | | | | | | Patch 2: Rebase and use isRemote() instead of checking subType manually. Change-Id: If3954cfea1e26fc92de8818e68d732d2a5aeaa7b issue-id: CYNGNOS-1410
* Add remote folder if it is not already present after OOBE, and enable toggleArtem Shvadskiy2015-12-0913-95/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in settings to hide remote folder if unwanted. Refactor RemoteFolderUpdater to hold static instance of itself. Refactor FolderInfo to use method for determining remote folder status, instead of manually comparing subType flag. Switch back from temp-coordinates after workspace drag/drop is completed. Remove disable button from remote folder UI. Patch 2: Pull remote folder code out of Launcher and into RemoteFolderManager. Patch 3: Remote @author from RemoteFolderManager Patch 4: 1. Remove delete button from folder. 2. Fix NPE when screens are full. Create a new screen and ad at (0,0). 3. Set default preference to false. 4. Clean up leftover imports and unnecessary conditionals. 5. Refactor Launcher.addFolder() method signature. Patch 5: Add missing parenthesis. Change-Id: I36b7a53175a568c5ebdc908d0256d9128e1bee65 issue-id: CYNGNOS-1378 issue-id: CYNGNOS-1331
* Trebuchet: RemoteFolder fix subtype & manifest entriesMichael Bestas2015-12-026-4/+35
| | | | Change-Id: I21282fb06be4391cf5ffbfb9b60a840820ded3e9
* Trebuchet: dynamic folder type addedTyson Miller2015-12-019-50/+536
| | | | | | Issue-Id: CYNGNOS-1328 Change-Id: I09bf7bec119307f54836fedee8a1532627035d9a
* Live Settings: always rebuild DynamicGridRaj Yengisetty2015-11-161-36/+34
| | | | | | Fixes bug with Dynamic Grid resize not applying. Change-Id: I39b9d8eea3bf4c36ce010728fd1cbb0b498c6f28
* 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