Skip to content
Snippets Groups Projects
Commit 69a4d8eb authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Add a log in beta to understand an IllegalStateException crash

parent 3daead8e
No related branches found
No related tags found
1 merge request!2013Crash fixes
......@@ -23,6 +23,7 @@ package org.videolan.television.ui.browser
import android.annotation.TargetApi
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
......@@ -38,6 +39,7 @@ import org.videolan.television.databinding.TvVerticalGridBinding
import org.videolan.television.ui.MainTvActivity
import org.videolan.television.ui.browser.interfaces.BrowserActivityInterface
import org.videolan.television.ui.browser.interfaces.DetailsFragment
import org.videolan.vlc.BuildConfig
import org.videolan.vlc.interfaces.BrowserFragmentInterface
import org.videolan.vlc.interfaces.Sortable
import org.videolan.vlc.viewmodels.browser.TYPE_FILE
......@@ -84,6 +86,7 @@ class VerticalGridActivity : BaseTvActivity(), BrowserActivityInterface {
finish()
return
}
if (!::fragment.isInitialized && BuildConfig.BETA) Log.i("VerticalGridActivity", "Fragment not initialized: $type")
supportFragmentManager.beginTransaction()
.add(R.id.tv_fragment_placeholder, fragment as Fragment)
.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment