]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/activities/ViewSourceActivity.kt
Convert LogcatActivity to Kotlin. https://redmine.stoutner.com/issues/770
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / activities / ViewSourceActivity.kt
index b2d50e7c79e96f56fc15c82a51588d73aadd95ff..759b79c0fb00ebbbe91fc20bb21e002392c4bfb7 100644 (file)
@@ -106,9 +106,9 @@ class ViewSourceActivity: AppCompatActivity(), UntrustedSslCertificateListener {
 
         // Set the content view.
         if (bottomAppBar) {
-            setContentView(R.layout.view_source_coordinatorlayout_bottom_appbar)
+            setContentView(R.layout.view_source_bottom_appbar)
         } else {
-            setContentView(R.layout.view_source_coordinatorlayout_top_appbar)
+            setContentView(R.layout.view_source_top_appbar)
         }
 
         // Get a handle for the toolbar.
@@ -186,11 +186,7 @@ class ViewSourceActivity: AppCompatActivity(), UntrustedSslCertificateListener {
         }
 
         // Set the refresh color scheme according to the theme.
-        if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
-            swipeRefreshLayout.setColorSchemeResources(R.color.blue_700)
-        } else {
-            swipeRefreshLayout.setColorSchemeResources(R.color.violet_500)
-        }
+        swipeRefreshLayout.setColorSchemeResources(R.color.blue_text)
 
         // Initialize a color background typed value.
         val colorBackgroundTypedValue = TypedValue()