- // We need to use the SupportActionBar from android.support.v7.app.ActionBar until the minimum API is >= 21.
- Toolbar aboutAppBar = (Toolbar) findViewById(R.id.about_toolbar);
- setSupportActionBar(aboutAppBar);
+ // Get handles for the views.
+ Toolbar toolbar = findViewById(R.id.about_toolbar);
+ TabLayout aboutTabLayout = findViewById(R.id.about_tablayout);
+ ViewPager aboutViewPager = findViewById(R.id.about_viewpager);
+
+ // Set the action bar. `SupportActionBar` must be used until the minimum API is >= 21.
+ setSupportActionBar(toolbar);
+
+ // Get a handle for the action bar.
+ final ActionBar actionBar = getSupportActionBar();
+
+ // Remove the incorrect lint warning that the action bar might be null.
+ assert actionBar != null; //