[Android] TV: Clear browser backstack

Geoffrey Métais git at videolan.org
Thu Jul 11 14:13:19 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 11 14:01:33 2019 +0200| [927415401ea8946b53b13e93fdaabcd8a9ffea1d] | committer: Geoffrey Métais

TV: Clear browser backstack

> https://code.videolan.org/videolan/vlc-android/commit/927415401ea8946b53b13e93fdaabcd8a9ffea1d
---

 vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt b/vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt
index 366330e0e..ed6c39324 100644
--- a/vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt
+++ b/vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt
@@ -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 -> {



More information about the Android mailing list