]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/AboutActivity.java
Add the Guide.
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / AboutActivity.java
index 5b6da8cb1fd7c648843e7fc1dc3595eaf21e6e2a..95b5fb338829816c762528fe72c99f8bcb4382ba 100644 (file)
@@ -41,17 +41,17 @@ public class AboutActivity extends AppCompatActivity {
 
         // Display the home arrow on supportAppBar.
         final ActionBar appBar = getSupportActionBar();
-        assert appBar != null;// This assert removes the incorrect warning on the following line that appBar might be null.
+        assert appBar != null;// This assert removes the incorrect warning in Android Studio on the following line that appBar might be null.
         appBar.setDisplayHomeAsUpEnabled(true);
 
         //  Setup the ViewPager.
         ViewPager aboutViewPager = (ViewPager) findViewById(R.id.about_viewpager);
-        assert aboutViewPager != null; // This assert removes the incorrect warning on the following line that aboutViewPager might be null.
+        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 on the following line that aboutTabLayout might be null.
+        assert aboutTabLayout != null; // This assert removes the incorrect warning in Android Studio on the following line that aboutTabLayout might be null.
         aboutTabLayout.setupWithViewPager(aboutViewPager);
     }
 
@@ -102,6 +102,4 @@ public class AboutActivity extends AppCompatActivity {
             return AboutTabFragment.createTab(tab);
         }
     }
-
-
 }