Selaa lähdekoodia

remove cast

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 7 vuotta sitten
vanhempi
commit
f7039115be

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

@@ -67,7 +67,7 @@ public class StreamMediaFileOperation extends RemoteOperation {
 
 
                 // Parse the response
                 // Parse the response
                 JSONObject respJSON = new JSONObject(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);
                 result = new RemoteOperationResult(true, postMethod);
                 ArrayList<Object> urlArray = new ArrayList<>();
                 ArrayList<Object> urlArray = new ArrayList<>();