/*
- * Copyright © 2016-2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2016-2022 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
*
import com.stoutner.privacybrowser.adapters.AboutPagerAdapter
class AboutActivity : AppCompatActivity() {
- // Declare the class variables.
- private lateinit var aboutPagerAdapter: AboutPagerAdapter
-
companion object {
// Define the companion object constants. These can be move to being public constants once MainWebViewActivity has been converted to Kotlin.
const val BLOCKLIST_VERSIONS = "blocklist_versions"
actionBar.setDisplayHomeAsUpEnabled(true)
// Initialize the about pager adapter.
- aboutPagerAdapter = AboutPagerAdapter(supportFragmentManager, applicationContext, blocklistVersions)
+ val aboutPagerAdapter = AboutPagerAdapter(supportFragmentManager, applicationContext, blocklistVersions)
// Set the view pager adapter.
aboutViewPager.adapter = aboutPagerAdapter