Widget preview improvements
- Make widget preview bitmaps as small as they can be, saving ~0.7-2MB peak memory (5104303) - When adding/dragging a widget, make the drag outline/drag view much more closely match the actual size (5566938) Change-Id: I5b5b7b84fa551d56432a76223b1a9e4de620ff56
This commit is contained in:
1 parent
fd99e7776a
commit
038f9d8bfb
5 files changed
+171
-113
No files matched your search
@@ -33,7 +33,8 @@ class PendingAddItemInfo extends ItemInfo {
|
||||
class PendingAddWidgetInfo extends PendingAddItemInfo {
|
||||
int minWidth;
|
||||
int minHeight;
|
||||
boolean hasDefaultPreview;
|
||||
int previewImage;
|
||||
int icon;
|
||||
|
||||
// Any configuration data that we want to pass to a configuration activity when
|
||||
// starting up a widget
|
||||
@@ -45,7 +46,8 @@ class PendingAddWidgetInfo extends PendingAddItemInfo {
|
||||
componentName = i.provider;
|
||||
minWidth = i.minWidth;
|
||||
minHeight = i.minHeight;
|
||||
hasDefaultPreview = i.previewImage <= 0;
|
||||
previewImage = i.previewImage;
|
||||
icon = i.icon;
|
||||
if (dataMimeType != null && data != null) {
|
||||
mimeType = dataMimeType;
|
||||
configurationData = data;
|
||||
|
||||
Reference in new issue
Block a user