]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/activities/AboutActivity.kt
Fix crash when adding domain settings with null domain. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / activities / AboutActivity.kt
index 73f6fc0e29bb02ce9544313ef17518a7dbdee608..0e1f320de1d20f87fec89ece6ac1b575ea2c5557 100644 (file)
@@ -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