From f7035f5306226d949a5cc082de5ad68bcc3da8af Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 19 Sep 2022 16:52:55 +0200 Subject: [PATCH] Theme toolbar for m3 Resolves #2384 Signed-off-by: Andy Scherzinger --- .../nextcloud/talk/activities/FullScreenTextViewerActivity.kt | 2 ++ app/src/main/res/layout/activity_full_screen_text.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/activities/FullScreenTextViewerActivity.kt b/app/src/main/java/com/nextcloud/talk/activities/FullScreenTextViewerActivity.kt index cce904b99..5bf306c1c 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/FullScreenTextViewerActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/activities/FullScreenTextViewerActivity.kt @@ -105,6 +105,8 @@ class FullScreenTextViewerActivity : AppCompatActivity() { supportActionBar?.setDisplayHomeAsUpEnabled(true) viewThemeUtils.platform.themeStatusBar(this, binding.textviewToolbar) + viewThemeUtils.material.themeToolbar(binding.textviewToolbar) + viewThemeUtils.material.colorToolbarOverflowIcon(binding.textviewToolbar) if (resources != null) { DisplayUtils.applyColorToNavigationBar( diff --git a/app/src/main/res/layout/activity_full_screen_text.xml b/app/src/main/res/layout/activity_full_screen_text.xml index f491502a5..db71002e8 100644 --- a/app/src/main/res/layout/activity_full_screen_text.xml +++ b/app/src/main/res/layout/activity_full_screen_text.xml @@ -40,7 +40,7 @@ android:id="@+id/textview_toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:theme="@style/appActionBarPopupMenu" + android:theme="?attr/actionBarPopupTheme" app:layout_scrollFlags="scroll|enterAlways|snap" app:navigationIconTint="@color/fontAppbar" app:popupTheme="@style/appActionBarPopupMenu"