mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Removing widget preview caching
> All previews are generated on demand when the corresponding header expands > Using ItemAnimator to animate layout changes when preview loads Bug: 196238313 Test: Manual Change-Id: I0cb859c8443c2c536399e4063f58baecfc7416ad
This commit is contained in:
@@ -32,7 +32,6 @@ import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherAppState;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.model.WidgetItem;
|
||||
import com.android.launcher3.widget.WidgetCell;
|
||||
@@ -109,10 +108,7 @@ public final class WidgetsRecommendationTableLayout extends TableLayout {
|
||||
|
||||
for (WidgetItem widgetItem : widgetItems) {
|
||||
WidgetCell widgetCell = addItemCell(tableRow);
|
||||
widgetCell.setPreviewSize(widgetItem, data.mPreviewScale);
|
||||
widgetCell.applyFromCellItem(widgetItem,
|
||||
LauncherAppState.getInstance(getContext()).getWidgetCache());
|
||||
widgetCell.ensurePreview();
|
||||
widgetCell.applyFromCellItem(widgetItem, data.mPreviewScale);
|
||||
}
|
||||
addView(tableRow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user