mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Changes due to Codacy
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
8869e4ce5f
commit
c29ccf6f67
2 changed files with 3 additions and 2 deletions
|
@ -82,8 +82,9 @@ public class StreamMediaFileOperation extends RemoteOperation {
|
|||
Log_OC.e(TAG, "Get stream url for file with id " + fileID + " failed: " + result.getLogMessage(),
|
||||
result.getException());
|
||||
} finally {
|
||||
if (postMethod != null)
|
||||
if (postMethod != null) {
|
||||
postMethod.releaseConnection();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -2329,7 +2329,7 @@ public class FileDisplayActivity extends HookActivity
|
|||
*/
|
||||
public void startMediaPreview(OCFile file, int startPlaybackPosition, boolean autoplay, boolean showPreview,
|
||||
boolean streamMedia) {
|
||||
if ((showPreview && file.isDown() && !file.isDownloading()) || streamMedia) {
|
||||
if (showPreview && file.isDown() && !file.isDownloading() || streamMedia) {
|
||||
Fragment mediaFragment = PreviewMediaFragment.newInstance(file, getAccount(), startPlaybackPosition, autoplay);
|
||||
setSecondFragment(mediaFragment);
|
||||
updateFragmentsVisibility(true);
|
||||
|
|
Loading…
Reference in a new issue