Commit 79480d0b authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

In some cases file size was being incorrectly set when sharing a file.

It was set as a field in the network package instead of with the payload.
parent 1edca5e4
......@@ -252,7 +252,7 @@ public class ShareToReceiver extends ActionBarActivity {
String path = cursor.getString(column_index);
np.set("filename", Uri.parse(path).getLastPathSegment());
np.set("size", (int)new File(path).length());
size = (int)new File(path).length();
} catch(Exception unused) {
Log.e("ShareToReceiver", "Could not resolve media to a file, trying to get info as media");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment