Browse Source

Fix contextual action bar theme

Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
Joris Bodin 5 years ago
parent
commit
8d6e4a9b6e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/res/layout/toolbar_standard.xml

+ 3 - 1
src/main/res/layout/toolbar_standard.xml

@@ -56,6 +56,7 @@
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
             android:background="@color/appbar"
             android:background="@color/appbar"
+            android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
             app:popupTheme="@style/Theme.AppCompat.DayNight.NoActionBar">
             app:popupTheme="@style/Theme.AppCompat.DayNight.NoActionBar">
 
 
             <androidx.appcompat.widget.AppCompatSpinner
             <androidx.appcompat.widget.AppCompatSpinner
@@ -63,7 +64,8 @@
                 android:layout_width="wrap_content"
                 android:layout_width="wrap_content"
                 android:layout_height="match_parent"
                 android:layout_height="match_parent"
                 android:visibility="gone"
                 android:visibility="gone"
-                app:backgroundTint="@color/fontAppbar" />
+                app:backgroundTint="@color/fontAppbar"
+                app:popupTheme="@style/Theme.AppCompat.DayNight.NoActionBar" />
         </androidx.appcompat.widget.Toolbar>
         </androidx.appcompat.widget.Toolbar>
 
 
     </RelativeLayout>
     </RelativeLayout>