summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppWidgetHostView.java
Commit message (Collapse)AuthorAgeFilesLines
* Stylus support: handling drag n drop for widgetsMady Mellor2015-06-021-3/+11
| | | | | | | | | This alters the widget host view code to consider stylus button presses allowing the user to pick up widgets with a stylus button press, and drop them by releasing the button. Bug: 20430722 Change-Id: I359f72bd80016f4b313aab1325cc92d7c6fd2a8c
* Refactoring DeviceProfileAdam Cohen2015-05-211-0/+4
| | | | | | | | | | | | | | | | | | | | -> 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
* Fixing crash when dragging and dropping a restored widget.Sunny Goyal2015-02-171-2/+2
| | | | | | | > When the widget is in pending state, AppWidgetProviderInfo is not available Bug: 19364311 Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
* Adding accessibility controlsSunny Goyal2015-01-161-0/+1
| | | | | | | | | | | > Adding 'Remove' option to workspace items > Adding 'Add to workspace' to all apps and widget list items, which adds the item to the first available space, giving preference to the current workspace screen > Adding 'App info' and 'Uninstall' options to appropriate items Bug: 18482913 Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-1/+16
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Adding support to restore widgets even for jelly beans.Sunny Goyal2014-08-081-28/+5
| | | | | | | | | | | | | | | > Show 'widget-not-ready' until the widget app is installed > Once the app is installed, bind a new widget id (not required on L if id-remap was received). **Remove the widget if bind failed > If the widget has no configuration screen, show the widget, otherwise show 'setup-widget'. > Clicking 'setup-widget' shows the config screen, and updates the widget on RESULT_OK. issue: 10779035 Change-Id: I2f8b06d09dd6acbc498cdd93edc59c26e5ce17af
* Adding app widget restore support in Launcher3 for android LSunny Goyal2014-07-211-0/+26
| | | | | | | | | | | When the app is restored, it displays placeholders for all pending widgets. These placeholders can be moved and removed similar to a widget (size is fixed to what defined in backup). Once the system notifies the launcher of the new widget ids, the place holders are replaced with actual widgets. issue: 10779035 Change-Id: I68cbe4da01e9ca2978cb4471a7c645d2aa592055
* Fix long press after already moving off iconJason Monk2014-04-221-0/+19
| | | | | | | | | | | | | When an icon is in the Hotseat and a user drags off from the icon, but continues holding down, the icon gets a long press triggered by the CheckLongPressHelper. To fix this a check has been added on move events to see if the point has moved outside the view and to cancel the long press check callback if it has. Bug: 13569451 Change-Id: Id175cdc220d70b5e9f8e492ed5a3cc7c3f11db10
* Fix issue where you could trigger a click after long pressing a widget ↵Adam Cohen2013-10-161-3/+11
| | | | | | (issue 11186227) Change-Id: I5a767ac6352f7efb4d3c6c2768c8d2aaaa913f3f
* Fix widget longpress issue where longpress misfires (issue 10988288)Adam Cohen2013-10-081-1/+12
| | | | Change-Id: Ibe4aa4d92a1b419b63ff3cf61164c637fb579221
* 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-0/+1
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Cancelling long press on widgets if they don't handle touch/tap.Winson Chung2013-08-161-0/+12
| | | | Change-Id: Id5f002f64d02d8d5fb9bdda8b062a026decbe0e2
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+101
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b