X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Factivities%2FViewSourceActivity.kt;h=759b79c0fb00ebbbe91fc20bb21e002392c4bfb7;hp=b2d50e7c79e96f56fc15c82a51588d73aadd95ff;hb=322b36f275782a06ed66b950083f28cc37f5690a;hpb=cd609c9888924549c03cd6509ed889cdb052d5bb diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/ViewSourceActivity.kt b/app/src/main/java/com/stoutner/privacybrowser/activities/ViewSourceActivity.kt index b2d50e7c..759b79c0 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/ViewSourceActivity.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/ViewSourceActivity.kt @@ -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()