- // Set the content view according to the theme.
- if (MainWebViewActivity.darkTheme) {
- setContentView(R.layout.about_coordinatorlayout_dark);
- } else {
- setContentView(R.layout.about_coordinatorlayout_light);
- }
+ // Set the content view.
+ setContentView(R.layout.about_coordinatorlayout);
+
+ // 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();