Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java
Show First 20 Lines • Show All 395 Lines • ▼ Show 20 Line(s) | 330 | try { | |||
---|---|---|---|---|---|
396 | return np; | 396 | return np; | ||
397 | } catch (Exception e) { | 397 | } catch (Exception e) { | ||
398 | Log.e("SendFileActivity", "Exception sending files"); | 398 | Log.e("SendFileActivity", "Exception sending files"); | ||
399 | e.printStackTrace(); | 399 | e.printStackTrace(); | ||
400 | return null; | 400 | return null; | ||
401 | } | 401 | } | ||
402 | } | 402 | } | ||
403 | 403 | | |||
404 | public static void share(Intent intent, Device device){ | 404 | public static void share(Intent intent, Device device) { | ||
405 | Bundle extras = intent.getExtras(); | 405 | Bundle extras = intent.getExtras(); | ||
406 | if (extras != null) { | 406 | if (extras != null) { | ||
407 | if (extras.containsKey(Intent.EXTRA_STREAM)) { | 407 | if (extras.containsKey(Intent.EXTRA_STREAM)) { | ||
408 | 408 | | |||
409 | try { | 409 | try { | ||
410 | 410 | | |||
411 | ArrayList<Uri> uriList; | 411 | ArrayList<Uri> uriList; | ||
412 | if (!Intent.ACTION_SEND.equals(intent.getAction())) { | 412 | if (!Intent.ACTION_SEND.equals(intent.getAction())) { | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |