X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2FAboutTabFragment.java;h=c82af274023e3eb78872492fe5aa0fce032ae9f1;hp=eda3e30a4dbffb5ac42ce139b271716971e054d1;hb=e82e1211aa3063e2cb2dd716df160364abfaa073;hpb=377499060c317f72587bf67a231713ac1635f444 diff --git a/app/src/main/java/com/stoutner/privacybrowser/AboutTabFragment.java b/app/src/main/java/com/stoutner/privacybrowser/AboutTabFragment.java index eda3e30a..c82af274 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/AboutTabFragment.java +++ b/app/src/main/java/com/stoutner/privacybrowser/AboutTabFragment.java @@ -52,7 +52,7 @@ public class AboutTabFragment extends Fragment { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View tabLayout; - // Load the about tab layout. + // Load the about tab layout. Tab numbers start at 0. if (tabNumber == 0) { // Setting false at the end of inflater.inflate does not attach the inflated layout as a child of container. // The fragment will take care of attaching the root automatically. @@ -130,7 +130,7 @@ public class AboutTabFragment extends Fragment { // Select the substring that begins after "Chrome/" and goes until the next " ". String chromeVersion = userAgentString.substring(userAgentString.indexOf("Chrome/") + 7, userAgentString.indexOf(" ", userAgentString.indexOf("Chrome/"))); versionChromeText.setText(chromeVersion); - } else { // load a WebView for all the other tabs. + } else { // load a WebView for all the other tabs. Tab numbers start at 0. // Setting false at the end of inflater.inflate does not attach the inflated layout as a child of container. // The fragment will take care of attaching the root automatically. tabLayout = inflater.inflate(R.layout.about_tab_webview, container, false); @@ -142,14 +142,18 @@ public class AboutTabFragment extends Fragment { break; case 2: - tabWebView.loadUrl("file:///android_asset/about_changelog.html"); + tabWebView.loadUrl("file:///android_asset/about_privacy_policy.html"); break; case 3: - tabWebView.loadUrl("file:///android_asset/about_license.html"); + tabWebView.loadUrl("file:///android_asset/about_changelog.html"); break; case 4: + tabWebView.loadUrl("file:///android_asset/about_license.html"); + break; + + case 5: tabWebView.loadUrl("file:///android_asset/about_contributors.html"); break;