浏览代码

remove cast

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 7 年之前
父节点
当前提交
f7039115be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/owncloud/android/files/StreamMediaFileOperation.java

+ 1 - 1
src/main/java/com/owncloud/android/files/StreamMediaFileOperation.java

@@ -67,7 +67,7 @@ public class StreamMediaFileOperation extends RemoteOperation {
 
                 // Parse the response
                 JSONObject respJSON = new JSONObject(response);
-                String url = (String) respJSON.getJSONObject(NODE_OCS).getJSONObject(NODE_DATA).get(NODE_URL);
+                String url = respJSON.getJSONObject(NODE_OCS).getJSONObject(NODE_DATA).getString(NODE_URL);
 
                 result = new RemoteOperationResult(true, postMethod);
                 ArrayList<Object> urlArray = new ArrayList<>();