Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
536
Issue boards
Milestones
Wiki
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
01e36e7d
Commit
01e36e7d
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix cast of Application instance
parent
6a5075f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5594
passed with stage
Stage:
in 3 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/VLCApplication.java
+2
-2
2 additions, 2 deletions
vlc-android/src/org/videolan/vlc/VLCApplication.java
with
2 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/VLCApplication.java
+
2
−
2
View file @
01e36e7d
...
...
@@ -58,7 +58,7 @@ public class VLCApplication extends Application {
public
final
static
String
TAG
=
"VLC/VLCApplication"
;
public
final
static
String
ACTION_MEDIALIBRARY_READY
=
"VLC/VLCApplication"
;
private
static
volatile
VLC
Application
instance
;
private
static
volatile
Application
instance
;
public
final
static
String
SLEEP_INTENT
=
Strings
.
buildPkgString
(
"SleepIntent"
);
...
...
@@ -143,7 +143,7 @@ public class VLCApplication extends Application {
if
(
instance
!=
null
)
return
instance
;
else
{
try
{
instance
=
(
VLC
Application
)
Class
.
forName
(
"android.app.ActivityThread"
).
getDeclaredMethod
(
"currentApplication"
).
invoke
(
null
);
instance
=
(
Application
)
Class
.
forName
(
"android.app.ActivityThread"
).
getDeclaredMethod
(
"currentApplication"
).
invoke
(
null
);
}
catch
(
IllegalAccessException
ignored
)
{}
catch
(
InvocationTargetException
ignored
)
{}
catch
(
NoSuchMethodException
ignored
)
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment