X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2FAboutActivity.java;h=95b5fb338829816c762528fe72c99f8bcb4382ba;hb=a44d1cbf2fdd6e460d88adcae1b84bff1802813f;hp=5b6da8cb1fd7c648843e7fc1dc3595eaf21e6e2a;hpb=16ac2ed746ebd24be5bd37aefbaadb31bec9caa1;p=PrivacyBrowserAndroid.git diff --git a/app/src/main/java/com/stoutner/privacybrowser/AboutActivity.java b/app/src/main/java/com/stoutner/privacybrowser/AboutActivity.java index 5b6da8cb..95b5fb33 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/AboutActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/AboutActivity.java @@ -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); } } - - }