Improve readability of if condition
This commit is contained in:
parent
36a36e4f85
commit
719039be89
|
@ -135,10 +135,10 @@ public class OnlineFeedViewActivity extends AppCompatActivity {
|
||||||
String feedUrl = null;
|
String feedUrl = null;
|
||||||
if (getIntent().hasExtra(ARG_FEEDURL)) {
|
if (getIntent().hasExtra(ARG_FEEDURL)) {
|
||||||
feedUrl = getIntent().getStringExtra(ARG_FEEDURL);
|
feedUrl = getIntent().getStringExtra(ARG_FEEDURL);
|
||||||
} else if (TextUtils.equals(getIntent().getAction(), Intent.ACTION_SEND)
|
} else if (TextUtils.equals(getIntent().getAction(), Intent.ACTION_SEND)) {
|
||||||
|| TextUtils.equals(getIntent().getAction(), Intent.ACTION_VIEW)) {
|
feedUrl = getIntent().getStringExtra(Intent.EXTRA_TEXT);
|
||||||
feedUrl = TextUtils.equals(getIntent().getAction(), Intent.ACTION_SEND)
|
} else if (TextUtils.equals(getIntent().getAction(), Intent.ACTION_VIEW)) {
|
||||||
? getIntent().getStringExtra(Intent.EXTRA_TEXT) : getIntent().getDataString();
|
feedUrl = getIntent().getDataString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (feedUrl == null) {
|
if (feedUrl == null) {
|
||||||
|
|
Loading…
Reference in New Issue