mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
codacy: fix reassigning of variable
This commit is contained in:
parent
620e58a283
commit
4804a799e8
2 changed files with 6 additions and 5 deletions
|
@ -62,10 +62,11 @@ public abstract class AuthenticatorUrlUtils {
|
|||
}
|
||||
|
||||
public static String normalizeUrlSuffix(String url) {
|
||||
if (url.endsWith("/")) {
|
||||
url = url.substring(0, url.length() - 1);
|
||||
String normalizedUrl = url;
|
||||
if (normalizedUrl.endsWith("/")) {
|
||||
normalizedUrl = normalizedUrl.substring(0, normalizedUrl.length() - 1);
|
||||
}
|
||||
return trimUrlWebdav(url);
|
||||
return trimUrlWebdav(normalizedUrl);
|
||||
}
|
||||
|
||||
public static String normalizeUrl(String url, boolean sslWhenUnprefixed) {
|
||||
|
|
|
@ -443,14 +443,14 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
|
|||
createMediaPlayerIfNeeded();
|
||||
mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
||||
String url = mFile.getStoragePath();
|
||||
boolean mIsStreaming = false;
|
||||
|
||||
/* Streaming is not possible right now
|
||||
if (url == null || url.length() <= 0) {
|
||||
url = AccountUtils.constructFullURLForAccount(this, mAccount) + mFile.getRemotePath();
|
||||
}
|
||||
mIsStreaming = url.startsWith("http:") || url.startsWith("https:");
|
||||
*/
|
||||
|
||||
//mIsStreaming = false;
|
||||
mPlayer.setDataSource(url);
|
||||
|
||||
mState = State.PREPARING;
|
||||
|
|
Loading…
Reference in a new issue