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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user