Messaging: Use MaterialComponents everywhere instead of AppCompat

* This is the proper thing to do
* Also fixes crash when forwarding a message

Change-Id: Ib3f34477cc9b76b1979f9e6f2f39e0f9222c16ee
This commit is contained in:
Michael W
2025-01-01 13:12:32 +01:00
parent b50c51d38f
commit 7f639e3652
5 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2015 The Android Open Source Project Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -18,6 +19,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
class="com.android.messaging.ui.BlockedParticipantsFragment" class="com.android.messaging.ui.BlockedParticipantsFragment"
android:id="@+id/blocked_participants_fragment" android:id="@+id/blocked_participants_fragment"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" android:theme="@style/Theme.MaterialComponents.Light.DarkActionBar"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2015 The Android Open Source Project Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -18,6 +19,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
class="com.android.messaging.ui.conversationlist.ConversationListFragment" class="com.android.messaging.ui.conversationlist.ConversationListFragment"
android:id="@+id/conversation_list_fragment" android:id="@+id/conversation_list_fragment"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" android:theme="@style/Theme.MaterialComponents.Light.DarkActionBar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2015 The Android Open Source Project Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -18,6 +19,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
class="com.android.messaging.ui.conversationsettings.PeopleAndOptionsFragment" class="com.android.messaging.ui.conversationsettings.PeopleAndOptionsFragment"
android:id="@+id/people_and_options_fragment" android:id="@+id/people_and_options_fragment"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" android:theme="@style/Theme.MaterialComponents.Light.DarkActionBar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2015 The Android Open Source Project Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -18,6 +19,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
class="com.android.messaging.ui.VCardDetailFragment" class="com.android.messaging.ui.VCardDetailFragment"
android:id="@+id/vcard_detail_fragment" android:id="@+id/vcard_detail_fragment"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" android:theme="@style/Theme.MaterialComponents.Light.DarkActionBar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2015 The Android Open Source Project Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project Copyright (C) 2024-2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -56,7 +56,7 @@
<item name="android:fastScrollPreviewBackgroundRight">@drawable/contacts_fastscroll_label_right</item> <item name="android:fastScrollPreviewBackgroundRight">@drawable/contacts_fastscroll_label_right</item>
</style> </style>
<style name="BugleTheme.DialogActivity" parent="@style/Theme.AppCompat.DayNight.Dialog"> <style name="BugleTheme.DialogActivity" parent="@style/Theme.MaterialComponents.DayNight.Dialog">
<item name="android:windowNoTitle">false</item> <item name="android:windowNoTitle">false</item>
<item name="android:background">@color/window_background</item> <item name="android:background">@color/window_background</item>
<item name="android:dialogCornerRadius">28dp</item> <item name="android:dialogCornerRadius">28dp</item>