After ag/14438399, a lot of related tests failed. Create two overlay layout files in robolectric and add original theme style back. It's not perfect, but it didn't affect the behavior of tests, Tests still can build the views and do the original tests. Test: Run robo test Fix: 187819138 Change-Id: I7af0e9e6c61fc204efeea03ec3ca8437aeb2d256
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 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.google.android.setupdesign.GlifLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:theme="@style/SudThemeGlifV3.DayNight"
|
|
android:orientation="vertical"
|
|
android:id="@+id/setup_wizard_layout"
|
|
android:icon="@drawable/ic_delete_accent"
|
|
app:sucHeaderText="@string/main_clear_confirm_title">
|
|
|
|
<LinearLayout
|
|
style="@style/SudContentFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/sud_layout_description"
|
|
style="@style/SudItemTitle.GlifDescription"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/main_clear_final_desc"/>
|
|
</LinearLayout>
|
|
</com.google.android.setupdesign.GlifLayout>
|