Merge pull request #5781 from cketti/improve_code_readability

Small change to improve code readability
This commit is contained in:
ByteHamster 2022-03-13 11:11:13 +01:00 committed by GitHub
commit 84b11566e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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) {