- @Override
- // Get the count of the number of tabs.
- public int getCount() {
- return 10;
- }
-
- @Override
- // Get the name of each tab. Tab numbers start at 0.
- public CharSequence getPageTitle(int tab) {
- switch (tab) {
- case 0:
- return getString(R.string.overview);
-
- case 1:
- return getString(R.string.javascript);
-
- case 2:
- return getString(R.string.local_storage);
-
- case 3:
- return getString(R.string.user_agent);
-
- case 4:
- return getString(R.string.requests);
-
- case 5:
- return getString(R.string.domain_settings);
+ // Remove the incorrect lint warnings that the views might be null
+ assert aboutViewPager != null;
+ assert aboutTabLayout != null;