]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Move the theme assignments to the manifest file. https://redmine.stoutner.com/issues/761
authorSoren Stoutner <soren@stoutner.com>
Fri, 15 Jul 2022 23:01:00 +0000 (16:01 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 15 Jul 2022 23:01:00 +0000 (16:01 -0700)
12 files changed:
app/src/main/AndroidManifest.xml
app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt
app/src/main/java/com/stoutner/privacybrowser/activities/BookmarksActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/BookmarksDatabaseViewActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/DomainsActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/GuideActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/ImportExportActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/LogcatActivity.kt
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/RequestsActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/SettingsActivity.java
app/src/main/java/com/stoutner/privacybrowser/activities/ViewSourceActivity.kt

index 5bd0bbf0e1946e48d77acaaa685a9bb3f527b095..829c4a1a2fc5ef193e3ccf486295a2fdcf715f87 100644 (file)
@@ -55,6 +55,7 @@
         android:allowBackup="false"
         android:fullBackupContent="false"
         android:supportsRtl="true"
+        android:theme="@style/PrivacyBrowser"
         android:networkSecurityConfig="@xml/network_security_config"
         tools:ignore="DataExtractionRules,UnusedAttribute" >
 
             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
             android:screenOrientation="fullUser"
             android:persistableMode="persistNever"
+            android:theme="@style/PrivacyBrowserSettings"
             tools:ignore="UnusedAttribute" />
 
         <!-- ImportExportActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
index 4b4042cee2f3e7dc279538ebb1952f41f85eb194..73f6fc0e29bb02ce9544313ef17518a7dbdee608 100644 (file)
@@ -54,9 +54,6 @@ class AboutActivity : AppCompatActivity() {
             window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser)
-
         // Run the default commands.
         super.onCreate(savedInstanceState)
 
index ef2bb4ed9ea19513bb17f78ea7efa0d46dfabcc1..932f01d3b95850cafe912afd581f6a60426bd9dd 100644 (file)
@@ -132,9 +132,6 @@ public class BookmarksActivity extends AppCompatActivity implements CreateBookma
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index dbfda387903de7d0fc0a9c40b42467fb8a16249b..7452b0bc4b53a1e6e70dd9fa6003a9a407c7e5ae 100644 (file)
@@ -107,9 +107,6 @@ public class BookmarksDatabaseViewActivity extends AppCompatActivity implements
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the activity theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index b9a4fb7d3271f3e8299bb1957624e4558ffca3c5..03a39919a118115da2b52a14cdcd32289fad5a66 100644 (file)
@@ -137,9 +137,6 @@ public class DomainsActivity extends AppCompatActivity implements AddDomainDialo
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index 759856baae5094637ea28e810bca2d818e861915..7a165d737d334c735a0f873381507e325aa5135a 100644 (file)
@@ -49,9 +49,6 @@ public class GuideActivity extends AppCompatActivity {
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index 548316dddba222bb8184f982902a2088ee3e7145..7c347a443edae038d77ecb67b63c6c351baefe7e 100644 (file)
@@ -123,9 +123,6 @@ public class ImportExportActivity extends AppCompatActivity {
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index 30d56cb9350259a4d4b28b94db9cff96a663ecfc..a3af538030258d4592c87289c892df441a866173 100644 (file)
@@ -118,9 +118,6 @@ class LogcatActivity : AppCompatActivity() {
             window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser)
-
         // Run the default commands.
         super.onCreate(savedInstanceState)
 
index 13d81cb9f5eb103e3e839de96804f2e408c4bb47..24c742c2ea70e34196e06c005f39b13f43aeab6f 100644 (file)
@@ -535,9 +535,6 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
         // Enable the drawing of the entire webpage.  This makes it possible to save a website image.  This must be done before anything else happens with the WebView.
         WebView.enableSlowWholeDocumentDraw();
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Set the content view according to the position of the app bar.
         if (bottomAppBar) setContentView(R.layout.main_framelayout_bottom_appbar);
         else setContentView(R.layout.main_framelayout_top_appbar);
index 1dba49a45299caa9d15377f47fd9afffe7654735..356d8b804bfe1ae4f0530f31ec98007449e1c004 100644 (file)
@@ -73,9 +73,6 @@ public class RequestsActivity extends AppCompatActivity implements ViewRequestDi
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index f04aaca32b6248bf80cb908e30db4c87c9707e6a..d21ccbb53be4aa0a52e073fe7f0599dcc791e711 100644 (file)
@@ -43,9 +43,6 @@ public class SettingsActivity extends AppCompatActivity {
             getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowserSettings);
-
         // Run the default commands.
         super.onCreate(savedInstanceState);
 
index b8df24820a5ad198e8a2dc3d6518efaf6f9325dd..e0a964ed203ebc35ea57f28cc241442301e2d209 100644 (file)
@@ -91,9 +91,6 @@ class ViewSourceActivity: AppCompatActivity(), UntrustedSslCertificateListener {
             window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
         }
 
-        // Set the theme.
-        setTheme(R.style.PrivacyBrowser)
-
         // Run the default commands.
         super.onCreate(savedInstanceState)