mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Changes due to CR
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
f7039115be
commit
5b1a011bff
2 changed files with 17 additions and 20 deletions
|
@ -352,9 +352,7 @@ public class FileOperationsHelper {
|
|||
public void streamMediaFile(OCFile file) {
|
||||
mFileActivity.showLoadingDialog(mFileActivity.getString(R.string.wait_a_moment));
|
||||
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
new Thread(() -> {
|
||||
Account account = AccountUtils.getCurrentOwnCloudAccount(mFileActivity);
|
||||
StreamMediaFileOperation sfo = new StreamMediaFileOperation(file.getLocalId());
|
||||
RemoteOperationResult result = sfo.execute(account, mFileActivity);
|
||||
|
@ -373,7 +371,6 @@ public class FileOperationsHelper {
|
|||
|
||||
mFileActivity.startActivity(Intent.createChooser(openFileWithIntent,
|
||||
mFileActivity.getString(R.string.stream)));
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
|
|
|
@ -512,7 +512,7 @@ public class PreviewMediaFragment extends FileFragment implements
|
|||
|
||||
new LoadStreamUrl(this, client).execute(getFile().getLocalId());
|
||||
} catch (Exception e) {
|
||||
Log_OC.e(TAG, "Loading stream url not possible: " + e.getMessage());
|
||||
Log_OC.e(TAG, "Loading stream url not possible: " + e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue