2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

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.
This commit is contained in:
Albert Vaca
2015-01-15 22:59:58 -08:00
parent 1edca5e45c
commit 79480d0b23

View File

@@ -252,7 +252,7 @@ public class ShareToReceiver extends ActionBarActivity {
cursor.moveToFirst();
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");