]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt
Add a bottom app bar to Settings. https://redmine.stoutner.com/issues/716
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / activities / AboutActivity.kt
index 73f6fc0e29bb02ce9544313ef17518a7dbdee608..72e50c4c827404da022ff8eca10830afd63395f8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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>.
  *
@@ -33,9 +33,6 @@ import com.stoutner.privacybrowser.R
 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"
@@ -85,7 +82,7 @@ class AboutActivity : AppCompatActivity() {
         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