mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-10 20:42:10 +03:00
Fix null reference exception on Exit
This commit is contained in:
parent
c60fef26d4
commit
f6313d3008
@ -75,7 +75,11 @@ public class MainActivity extends SubsonicTabActivity
|
|||||||
if (getIntent().hasExtra(Constants.INTENT_EXTRA_NAME_EXIT))
|
if (getIntent().hasExtra(Constants.INTENT_EXTRA_NAME_EXIT))
|
||||||
{
|
{
|
||||||
setResult(Constants.RESULT_CLOSE_ALL);
|
setResult(Constants.RESULT_CLOSE_ALL);
|
||||||
|
|
||||||
|
if (getDownloadService() != null)
|
||||||
|
{
|
||||||
getDownloadService().stopJukeboxService();
|
getDownloadService().stopJukeboxService();
|
||||||
|
}
|
||||||
|
|
||||||
if (getImageLoader() != null)
|
if (getImageLoader() != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user