Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
11314179
Commit
11314179
authored
Oct 23, 2011
by
Sébastien Toque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash if MainActivity's instance doesn't exists
parent
e40a70ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vlc-android/src/org/videolan/vlc/android/LibVLC.java
vlc-android/src/org/videolan/vlc/android/LibVLC.java
+1
-1
No files found.
vlc-android/src/org/videolan/vlc/android/LibVLC.java
View file @
11314179
...
...
@@ -55,7 +55,7 @@ public class LibVLC {
sInstance
=
new
LibVLC
();
sInstance
.
init
();
if
(
sListener
==
null
)
{
if
(
sListener
==
null
&&
MainActivity
.
getInstance
()
!=
null
)
{
SharedPreferences
prefs
=
PreferenceManager
.
getDefaultSharedPreferences
(
MainActivity
.
getInstance
());
/* This needs to be stored in a local field, to avoid garbage collection, since
* the shared prefs only keep a weak reference to it. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment