]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/AboutActivity.java
Refactor the code to make all the Java files lint free.
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / AboutActivity.java
index 6b462acda690882915e45c5df1556180d1a6d998..f8e8eb36fbd6a5072e41ef9a5a8a9e99c7dfc240 100644 (file)
@@ -46,17 +46,15 @@ public class AboutActivity extends AppCompatActivity {
 
         //  Setup the ViewPager.
         ViewPager aboutViewPager = (ViewPager) findViewById(R.id.about_viewpager);
-        assert aboutViewPager != null; // This assert removes the incorrect warning in Android Studio on the following line that aboutViewPager might be null.
         aboutViewPager.setAdapter(new aboutPagerAdapter(getSupportFragmentManager()));
 
         // Setup the TabLayout and connect it to the ViewPager.
         TabLayout aboutTabLayout = (TabLayout) findViewById(R.id.about_tablayout);
-        assert aboutTabLayout != null; // This assert removes the incorrect warning in Android Studio on the following line that aboutTabLayout might be null.
         aboutTabLayout.setupWithViewPager(aboutViewPager);
     }
 
     public class aboutPagerAdapter extends FragmentPagerAdapter {
-        public aboutPagerAdapter(FragmentManager fm) {
+        private aboutPagerAdapter(FragmentManager fm) {
             super(fm);
         }