Create a dark theme for `SettingsActivity`.
[PrivacyBrowser.git] / app / src / main / java / com / stoutner / privacybrowser / activities / SettingsActivity.java
index 075d5ece52f91a6df5699f2eec17ed11125ae733..e1592a6356b66bdb201d3e12e663117a6c40d626 100644 (file)
@@ -21,14 +21,22 @@ package com.stoutner.privacybrowser.activities;
 
 import android.os.Bundle;
 import android.preference.PreferenceFragment;
 
 import android.os.Bundle;
 import android.preference.PreferenceFragment;
-import android.support.v4.app.NavUtils;
 import android.support.v7.app.AppCompatActivity;
 
 import android.support.v7.app.AppCompatActivity;
 
+import com.stoutner.privacybrowser.R;
 import com.stoutner.privacybrowser.fragments.SettingsFragment;
 
 public class SettingsActivity extends AppCompatActivity {
     @Override
     protected void onCreate(Bundle savedInstanceState) {
 import com.stoutner.privacybrowser.fragments.SettingsFragment;
 
 public class SettingsActivity extends AppCompatActivity {
     @Override
     protected void onCreate(Bundle savedInstanceState) {
+        // Set the activity theme.
+        if (MainWebViewActivity.darkTheme) {
+            setTheme(R.style.PrivacyBrowserSettingsDark);
+        } else {
+            setTheme(R.style.PrivacyBrowserSettingsLight);
+        }
+
+        // Run the default commands.
         super.onCreate(savedInstanceState);
 
         // Display SettingsFragment.
         super.onCreate(savedInstanceState);
 
         // Display SettingsFragment.