diff options
author | cketti <ck@cketti.de> | 2022-03-12 18:47:47 +0100 |
---|---|---|
committer | cketti <ck@cketti.de> | 2022-03-12 18:47:47 +0100 |
commit | 719039be892e441b2f4e81baff88a4010c67775b (patch) | |
tree | 7b35918a4b3ea39afb0aead5209cfcda87723aff /app/src/main/java/de/danoeh/antennapod | |
parent | 36a36e4f853259f34fc3608ed1b21d575129e274 (diff) | |
download | AntennaPod-719039be892e441b2f4e81baff88a4010c67775b.zip |
Improve readability of if condition
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java index d4d338d7b..3dfe661d1 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java @@ -135,10 +135,10 @@ public class OnlineFeedViewActivity extends AppCompatActivity { String feedUrl = null; if (getIntent().hasExtra(ARG_FEEDURL)) { feedUrl = getIntent().getStringExtra(ARG_FEEDURL); - } else if (TextUtils.equals(getIntent().getAction(), Intent.ACTION_SEND) - || TextUtils.equals(getIntent().getAction(), Intent.ACTION_VIEW)) { - feedUrl = TextUtils.equals(getIntent().getAction(), Intent.ACTION_SEND) - ? getIntent().getStringExtra(Intent.EXTRA_TEXT) : getIntent().getDataString(); + } else if (TextUtils.equals(getIntent().getAction(), Intent.ACTION_SEND)) { + feedUrl = getIntent().getStringExtra(Intent.EXTRA_TEXT); + } else if (TextUtils.equals(getIntent().getAction(), Intent.ACTION_VIEW)) { + feedUrl = getIntent().getDataString(); } if (feedUrl == null) { |