Commit 92741540 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: Clear browser backstack

parent d79dbb68
......@@ -220,6 +220,7 @@ class MainTvModel(app: Application) : AndroidViewModel(app), AbstractMedialibrar
val intent = Intent(activity, VerticalGridActivity::class.java)
intent.putExtra(MainTvActivity.BROWSER_TYPE, if ("file" == item.uri.scheme) HEADER_DIRECTORIES else HEADER_NETWORK)
intent.data = item.uri
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK)
activity.startActivity(intent)
}
else -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment