]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/adapters/GuidePagerAdapter.java
Combine the light and dark Guide and About pages. https://redmine.stoutner.com/issue...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / adapters / GuidePagerAdapter.java
index fccf188316fc88efae4251b09cfae69a88440cf4..fc89cefd76d88d2b6025edf1fa05921679ff705a 100644 (file)
@@ -27,17 +27,18 @@ import androidx.fragment.app.FragmentManager;
 import androidx.fragment.app.FragmentPagerAdapter;
 
 import com.stoutner.privacybrowser.R;
-import com.stoutner.privacybrowser.fragments.GuideTabFragment;
+import com.stoutner.privacybrowser.fragments.GuideWebViewFragment;
 
 public class GuidePagerAdapter extends FragmentPagerAdapter {
-    // Define the class context variable.
-    private Context context;
+    // Define the class variables.
+    private final 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;
     }
 
@@ -87,6 +88,6 @@ public class GuidePagerAdapter extends FragmentPagerAdapter {
     @NonNull
     // Setup each tab.
     public Fragment getItem(int tabNumber) {
-        return GuideTabFragment.createTab(tabNumber);
+        return GuideWebViewFragment.createTab(tabNumber);
     }
 }
\ No newline at end of file