squid:S1488 - Local Variables should not be declared and then immediately returned or thrown
This commit is contained in:
parent
cc1329f614
commit
ddd3d26949
|
@ -482,9 +482,7 @@ public class TVShowEpisodeListFragment extends AbstractDetailsFragment
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) {
|
public View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) {
|
||||||
final View view = LayoutInflater.from(context)
|
return LayoutInflater.from(context).inflate(R.layout.list_item_season, parent, false);
|
||||||
.inflate(R.layout.list_item_season, parent, false);
|
|
||||||
return view;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -316,10 +316,7 @@ public class AddHostFragmentZeroconf extends Fragment {
|
||||||
(ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
|
(ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
|
|
||||||
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
|
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
|
||||||
boolean isConnected = activeNetwork != null &&
|
return activeNetwork != null && activeNetwork.isConnectedOrConnecting();
|
||||||
activeNetwork.isConnectedOrConnecting();
|
|
||||||
|
|
||||||
return isConnected;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue