mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
WidgetCell will use the generated RemoteViews preview to display previews in the widget picker. It will fallback to current preview methods if not available. Introduces WidgetManagerHelper.loadGeneratedPreviews as a utility function. WidgetManagerHelper is passed into the constructor of WidgetItem to avoid calling context.getSystemService(AppWidgetManager.class) for each widget. Bug: 308041327 Test: atest Launcher3Tests:GeneratedPreviewTest Flag: ACONFIG com.android.launcher3.enable_generated_previews DEVELOPMENT Change-Id: I37429057cda83a5321884ace2537038e050b9a58
8 lines
306 B
XML
8 lines
306 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@android:id/content"
|
|
android:orientation="vertical"
|
|
android:background="#FFFF0000"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" /> |