]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/import_export_coordinatorlayout.xml
Fix the app bar and options menu icon colors. https://redmine.stoutner.com/issues/618
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / import_export_coordinatorlayout.xml
index f84dad44212fb444c6738ca64afd32ecf4576732..5803328693752d4c4477f97a041ad6d1bf78a207 100644 (file)
         android:layout_width="match_parent"
         android:orientation="vertical" >
 
+        <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
         <com.google.android.material.appbar.AppBarLayout
             android:id="@+id/import_export_appbarlayout"
             android:layout_height="wrap_content"
             android:layout_width="match_parent"
-            android:background="?android:attr/colorBackground" >
+            android:background="?android:attr/colorBackground"
+            android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
 
             <androidx.appcompat.widget.Toolbar
                 android:id="@+id/import_export_toolbar"
                             android:layout_gravity="center_horizontal"
                             android:layout_margin="5dp"
                             android:text="@string/file_does_not_exist"
-                            android:textColor="?attr/redText"
+                            android:textColor="?attr/redTextColor"
                             android:textAlignment="center" />
 
                         <TextView
                             android:layout_gravity="center_horizontal"
                             android:layout_margin="5dp"
                             android:text="@string/file_exists_warning"
-                            android:textColor="?attr/redText"
+                            android:textColor="?attr/redTextColor"
                             android:textAlignment="center" />
 
                         <!-- OpenKeychain import instructions -->