Remove redundant return
This commit is contained in:
parent
727219a1ca
commit
8f0a27bfec
|
@ -232,11 +232,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
|
||||||
rewindButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
|
rewindButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground() throws Throwable {
|
protected Void doInBackground() throws Throwable {
|
||||||
if (getDownloadService() == null) {
|
if (getDownloadService() != null) {
|
||||||
return null;
|
getDownloadService().rewind();
|
||||||
}
|
}
|
||||||
|
|
||||||
getDownloadService().rewind();
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}.execute());
|
}.execute());
|
||||||
|
@ -245,11 +243,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
|
||||||
previousButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
|
previousButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground() throws Throwable {
|
protected Void doInBackground() throws Throwable {
|
||||||
if (getDownloadService() == null) {
|
if (getDownloadService() != null) {
|
||||||
return null;
|
getDownloadService().previous();
|
||||||
}
|
}
|
||||||
|
|
||||||
getDownloadService().previous();
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}.execute());
|
}.execute());
|
||||||
|
@ -264,7 +260,6 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
|
||||||
} else {
|
} else {
|
||||||
getDownloadService().start();
|
getDownloadService().start();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}.execute());
|
}.execute());
|
||||||
|
@ -273,11 +268,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
|
||||||
nextButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
|
nextButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground() throws Throwable {
|
protected Void doInBackground() throws Throwable {
|
||||||
if (getDownloadService() == null) {
|
if (getDownloadService() != null) {
|
||||||
return null;
|
getDownloadService().next();
|
||||||
}
|
}
|
||||||
|
|
||||||
getDownloadService().next();
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}.execute());
|
}.execute());
|
||||||
|
|
Loading…
Reference in New Issue