]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/adapters/GuidePagerAdapter.java
Save and restore the app state. https://redmine.stoutner.com/issues/461
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / adapters / GuidePagerAdapter.java
index 59ad9f31d0860f3f2c76bb8363d3a1cc5a282589..26d376c2b5cea915ab58faac48416385dc516b03 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2016-2019 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2016-2020 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
  *
@@ -30,21 +30,22 @@ import com.stoutner.privacybrowser.R;
 import com.stoutner.privacybrowser.fragments.GuideTabFragment;
 
 public class GuidePagerAdapter extends FragmentPagerAdapter {
-    // Define the class context variable.
+    // Define the class variables.
     private Context context;
 
+    // The default constructor.
     public GuidePagerAdapter(FragmentManager fragmentManager, Context context) {
         // Run the default commands.
         super(fragmentManager, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
 
-        // Store the context in a class variable.
+        // Store the class variables.
         this.context = context;
     }
 
     @Override
     // Get the count of the number of tabs.
     public int getCount() {
-        return 10;
+        return 9;
     }
 
     @Override
@@ -78,9 +79,6 @@ public class GuidePagerAdapter extends FragmentPagerAdapter {
             case 8:
                 return context.getString(R.string.tracking_ids);
 
-            case 9:
-                return context.getString(R.string.bookmarks);
-
             default:
                 return "";
         }