summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PendingAppWidgetHostView.java
Commit message (Collapse)AuthorAgeFilesLines
* Moving widget reinflation to push modelSunny Goyal2017-10-051-3/+1
| | | | | | | | Instead of checking every widget, a widget which needs reinflation would post a callback on launcher avoiding unnecessary loops in onResume Bug: 67305604 Change-Id: I53e08d6f4795f7b716a9debca5c0c68dd25a7afe
* Fix bug where widgets are inflated in the wrong orientation.Jon Miranda2017-09-191-1/+1
| | | | | | | | | | | | The bug is that in onResume, the context may tell us the wrong orientation. As a workaround, we store the orientation that the Launcher is created with, and we use that orientation to check whether we actually need to reinflate the widgets. Bug: 64916689 Change-Id: I5194debbd217a573d1f177c31d8c0abdf9da51b5
* Show icon in PendingAppWidgetHostView immediately.Jon Miranda2017-05-031-4/+7
| | | | | | | | | | Before this change, PendingAppWidgetHostView would appear 'blank' until they were loaded -- which could take a while depending on how many apps the user had, because the all apps icons are loaded first. Bug: 36815047 Change-Id: Ia7449cce4341ed9e9384fc8aaadeaae6c33bb262
* Add padding to pending widget background.Jon Miranda2017-03-201-1/+1
| | | | | Bug: 36450202 Change-Id: I12c754d0ff1ac2f9a63d2e475bff5524fe51cb57
* Simplifying some launcher themesSunny Goyal2017-02-161-1/+2
| | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* Updating widget tray themeSunny Goyal2017-02-091-2/+2
| | | | | | | | | | Using standard theme attributes rather than custom color codes, so that it plays nice with system theme changes. Bug: 34819119 Bug: 34897402 Bug: 21446746 Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
* Updating the PreloadIconDrawableSunny Goyal2017-02-061-15/+4
| | | | | | | | | > The drawable gets the path from MaskIconDrawable path, instead of using a circle > The progress changes are animated as well Bug: 34831873 Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
* Updating PendingAppWidgetHostView to load icon on the background threadSunny Goyal2017-01-051-7/+13
| | | | | Bug: 21325319 Change-Id: I0886eec5a3f36f5e1ac18020c54891a56bdb5ed2
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-7/+1
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Merge "Simplifyling widget inflation and addition flow." into ↵Sunny Goyal2016-12-081-2/+6
|\ | | | | | | ub-launcher3-master
| * Simplifyling widget inflation and addition flow.Sunny Goyal2016-12-071-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | > Removing insert parameter used to select the index of the view. ShortcutAndWidgetContainer no longet relies on the index and instead uses x and y to refer a particulat view. > Creating helper methods to easily insert the icon by passing ItemInfo directly. LauncherModel.addItemToDatabase synchronously updates the ItemInfo with proper postion information. So we can directly use the info instead of passing each parameter separately. Bug: 32904959 Change-Id: I021c1b818f2f42604b95a6970e06aacc7211292a
* | Adding an overridable DrawableFactory to allow creating custom icon drawablesSunny Goyal2016-12-071-3/+6
|/ | | | | | > Adding ItemInfo as a parameter for creating drawable Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
* Keep disabled FastBitmapDrawables disabled while fast scrolling.Tony Wickham2016-11-111-1/+1
| | | | | | | | | | | | Previously, they were animating to be colored because they were set to have a FAST_SCROLL_UNLHIGHLIGHTED state. Now they retain their disabled color when changing fast scroll states. Specfically, we remove the DISABLED state and instead make it a property of the FastBitmapDrawable. Bug: 32642959 Change-Id: I6cb2da134a550c267eebfc756eff8c91a33f028c
* Adding logic to pull in workspace data from another Launcher3 basedSunny Goyal2016-07-091-2/+3
| | | | | | | | provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package. Bug: 28536314 Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
* Showing a permission dialog when a restored widget is not yet bound, and ↵Sunny Goyal2016-05-261-2/+12
| | | | | | | | launcher does not has the permission to bind the widget Change-Id: I51d32b9958f82671b928d559105129261fb8f268
* Preventing crash when there is not enough width to show the pending textSunny Goyal2016-02-231-20/+24
| | | | | Bug: 26901856 Change-Id: I03c9631ce224cce76b2c896a5e6ce6b0ee741782
* Make sure that the dimensions are not negative when drawing pending widgetSunny Goyal2015-10-011-1/+1
| | | | | Bug: 24585203 Change-Id: I3d328d0e1fe81d2704bb5b9d4b340a367bfb9249
* Highlighting sectioned apps on fast-scroll.Winson2015-09-281-1/+1
| | | | | | | | | | | | | | - This CL fixes an old assumption we had about the height of rows in AllApps, and ensures that we account for the difference in height between the predictive icons and the normal icons. - In addition, we refactor FastBitmapDrawable to have multiple states, which it manages in drawing itself, including the press state and fast scroll focus states. And we also refactor some of the fast scroll logic in the all apps recycler view out to its own class. Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
* Version code cleanupSunny Goyal2015-08-171-1/+1
| | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* Updating the UI for the pending widget viewSunny Goyal2015-08-171-79/+121
| | | | | Bug: 23183034 Change-Id: I2b3f6f765a51edf75e666186650bbd3cf7b66a7a
* Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-2/+2
| | | | | | | | | > Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
* Refactoring DeviceProfileAdam Cohen2015-05-211-8/+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
* Showing widgets in a disabled state, when running in safe modeSunny Goyal2014-10-161-20/+37
| | | | | | Bug: 15172107 Change-Id: I7209836ca4ffacde7b7b232e230e9b9f1a0e54bb
* Improving restored widget behaviorSunny Goyal2014-08-271-16/+66
| | | | | | | | | | | > Clicking a broken widget install shows a dialog similar to an app icon > Clicking remove on the dialog removed all components for the corresponding package > Widget pending view shows 'Setup' text instead of icon, if there is enough space Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
* Updating the ui for widget restore flowSunny Goyal2014-08-121-20/+133
| | | | | | | | | | | | | | > Pending widget show a PreloadIconDrawable to indicate installation progress > Only the concerned widgets are reinflated on package install and not the whole workspace. > Adding support for storing default package icon in IconCache issue: 10779035 issue: 16737660 Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
* Adding support to restore widgets even for jelly beans.Sunny Goyal2014-08-081-0/+78
> 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