]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/import_export_coordinatorlayout.xml
Fix problems with audio still playing after a tab is closed. https://redmine.stoutne...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / import_export_coordinatorlayout.xml
index f84dad44212fb444c6738ca64afd32ecf4576732..f5bcfe5818e39447b54b375aee6cecc6635793de 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/PrivacyBrowserAppBar" >
 
             <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 -->