mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 14:45:08 +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();
|
cursor.moveToFirst();
|
||||||
String path = cursor.getString(column_index);
|
String path = cursor.getString(column_index);
|
||||||
np.set("filename", Uri.parse(path).getLastPathSegment());
|
np.set("filename", Uri.parse(path).getLastPathSegment());
|
||||||
np.set("size", (int)new File(path).length());
|
size = (int)new File(path).length();
|
||||||
} catch(Exception unused) {
|
} catch(Exception unused) {
|
||||||
|
|
||||||
Log.e("ShareToReceiver", "Could not resolve media to a file, trying to get info as media");
|
Log.e("ShareToReceiver", "Could not resolve media to a file, trying to get info as media");
|
||||||
|
Reference in New Issue
Block a user