]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/activities/GuideActivity.java
Refactor style code to use attrs.xml. Create a dark theme for Find on Page.
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / activities / GuideActivity.java
index ca7756e9dd16fe2637bec593ced073672f8fff67..3bde5a16dfa722951a9e2ffc719f05b3bae32af4 100644 (file)
@@ -35,7 +35,17 @@ import com.stoutner.privacybrowser.R;
 public class GuideActivity extends AppCompatActivity {
     @Override
     protected void onCreate(Bundle savedInstanceState) {
+        // Set the theme.
+        if (MainWebViewActivity.darkTheme) {
+            setTheme(R.style.PrivacyBrowserDark_SecondaryActivity);
+        } else {
+            setTheme(R.style.PrivacyBrowserLight_SecondaryActivity);
+        }
+
+        // Run the default commands.
         super.onCreate(savedInstanceState);
+
+        // Set the content view.
         setContentView(R.layout.guide_coordinatorlayout);
 
         // We need to use `SupportActionBar` from `android.support.v7.app.ActionBar` until the minimum API is >= 21.
@@ -66,7 +76,7 @@ public class GuideActivity extends AppCompatActivity {
         @Override
         // Get the count of the number of tabs.
         public int getCount() {
-            return 9;
+            return 7;
         }
 
         @Override
@@ -94,12 +104,6 @@ public class GuideActivity extends AppCompatActivity {
                 case 6:
                     return getString(R.string.tracking_ids);
 
-                case 7:
-                    return getString(R.string.clear_and_exit);
-
-                case 8:
-                    return getString(R.string.planned_features);
-
                 default:
                     return "";
             }