Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
e5a4789d
Commit
e5a4789d
authored
Jul 06, 2014
by
Jean-Baptiste Kempf
Browse files
MediaLibrary: remove mRestartContext
parent
d7babc50
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/MediaLibrary.java
View file @
e5a4789d
...
...
@@ -57,7 +57,6 @@ public class MediaLibrary {
private
final
ReadWriteLock
mItemListLock
;
private
boolean
isStopping
=
false
;
private
boolean
mRestart
=
false
;
private
Context
mRestartContext
;
protected
Thread
mLoadingThread
;
private
MediaLibrary
()
{
...
...
@@ -72,7 +71,6 @@ public class MediaLibrary {
/* do a clean restart if a scan is ongoing */
mRestart
=
true
;
isStopping
=
true
;
mRestartContext
=
context
;
}
else
{
loadMediaItems
();
}
...
...
@@ -360,8 +358,6 @@ public class MediaLibrary {
Log
.
d
(
TAG
,
"Restarting scan"
);
mRestart
=
false
;
restartHandler
.
sendEmptyMessageDelayed
(
1
,
200
);
}
else
{
mRestartContext
=
null
;
}
}
}
...
...
@@ -378,10 +374,7 @@ public class MediaLibrary {
public
void
handleMessage
(
Message
msg
)
{
MediaLibrary
owner
=
getOwner
();
if
(
owner
==
null
)
return
;
if
(
owner
.
mRestartContext
!=
null
)
owner
.
loadMediaItems
();
else
Log
.
e
(
TAG
,
"Context lost in a black hole"
);
owner
.
loadMediaItems
();
}
}
...
...
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