mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Launcher preview rendering fails on AOSP Launcher3 because the search bar (AppsSearchContainerLayout) tries to find BaseDraggingActivity during inflation, which doesn't exist in the preview hierarchy. Remove the search bar from the launcher preview layout entirely to fix the issue. This is actually more consistent with our real launcher appearance because it doesn't have a search bar to begin with. Change-Id: Ic549fd9d592bc702e0c12285fb016b908e49d514
44 lines
1.8 KiB
XML
44 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<com.android.launcher3.InsettableFrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.android.launcher3.CellLayout
|
|
android:id="@+id/workspace"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="top|left"
|
|
android:theme="@style/HomeScreenElementTheme"
|
|
launcher:containerType="workspace"
|
|
launcher:pageIndicator="@+id/page_indicator"/>
|
|
|
|
<com.android.launcher3.Hotseat
|
|
android:id="@+id/hotseat"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:importantForAccessibility="no"
|
|
android:theme="@style/HomeScreenElementTheme"
|
|
launcher:containerType="hotseat" />
|
|
|
|
<com.android.launcher3.InsettableFrameLayout
|
|
android:id="@+id/apps_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
</com.android.launcher3.InsettableFrameLayout> |