From 73cd9a5638b336cda8acc3bd99a0cc02e22b79d1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 6 Dec 2016 17:35:05 +0100 Subject: [PATCH] initialize viewpager mMedia at creation --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 2660ddf37..015c0316d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -34,7 +34,7 @@ import java.io.File import java.util.* class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View.OnSystemUiVisibilityChangeListener, ViewPagerFragment.FragmentClickListener { - lateinit var mMedia: ArrayList + private var mMedia = ArrayList() private var mPath = "" private var mDirectory = ""