[Android] Fix MediaParsingService start on Oreo+ devices
Geoffrey Métais
git at videolan.org
Wed Jul 25 09:41:21 CEST 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 25 09:35:38 2018 +0200| [99bd09091dd97ca2be2926dad96dae3bbc577c0d] | committer: Geoffrey Métais
Fix MediaParsingService start on Oreo+ devices
> https://code.videolan.org/videolan/vlc-android/commit/99bd09091dd97ca2be2926dad96dae3bbc577c0d
---
vlc-android/src/org/videolan/vlc/StartActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.java b/vlc-android/src/org/videolan/vlc/StartActivity.java
index 4bc9e7220..295f16a01 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.java
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.java
@@ -100,7 +100,7 @@ public class StartActivity extends FragmentActivity implements StoragePermission
private void startMedialibrary(final boolean firstRun, final boolean upgrade) {
if (!VLCApplication.getMLInstance().isInitiated() && Permissions.canReadStorage(StartActivity.this))
- startService(new Intent(Constants.ACTION_INIT, null, StartActivity.this, MediaParsingService.class)
+ Util.startService(this, new Intent(Constants.ACTION_INIT, null, StartActivity.this, MediaParsingService.class)
.putExtra(Constants.EXTRA_FIRST_RUN, firstRun)
.putExtra(Constants.EXTRA_UPGRADE, upgrade));
}
More information about the Android
mailing list