X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Factivities%2FAboutActivity.kt;h=72e50c4c827404da022ff8eca10830afd63395f8;hp=73f6fc0e29bb02ce9544313ef17518a7dbdee608;hb=9e11e18f4775c6bdd41f752f3baa290a0b50621d;hpb=85a7c67b4bb47c01bce4c42038bf20a3dc90e4aa diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt b/app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt index 73f6fc0e..72e50c4c 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2016-2022 Soren Stoutner . + * Copyright 2016-2022 Soren Stoutner . * * This file is part of 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