diff --git a/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java b/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java index a58a25f7..46bfc0f6 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java @@ -119,11 +119,11 @@ public class ShareActivity extends StateDialogActivity // TODO: add support for EXTRA_TEXT (notes, memos sharing) ArrayList extrasToCopy = new ArrayList<>(); - if (getIntent().getAction().equals(Intent.ACTION_SEND)) { + if (Intent.ACTION_SEND.equals(getIntent().getAction())) { Uri uri = getIntent().getParcelableExtra(Intent.EXTRA_STREAM); if (uri != null) extrasToCopy.add(uri); - } else if (getIntent().getAction().equals(Intent.ACTION_SEND_MULTIPLE)) { + } else if (Intent.ACTION_SEND_MULTIPLE.equals(getIntent().getAction())) { ArrayList extras = getIntent().getParcelableArrayListExtra(Intent.EXTRA_STREAM); if (extras != null) extrasToCopy = extras;