Improvements based on codacy-bot feedback.

This commit is contained in:
Paul Hawke 2017-07-09 17:52:50 -05:00
parent 6ccc608a1e
commit 9387d31cb6
2 changed files with 41 additions and 33 deletions

View file

@ -27,7 +27,9 @@ public class NearbyListFragment extends Fragment {
}.getType();
private static final Type CUR_LAT_LNG_TYPE = new TypeToken<LatLng>() {
}.getType();
private static final Gson gson = new GsonBuilder().registerTypeAdapter(Uri.class, new UriDeserializer()).create();
private static final Gson gson = new GsonBuilder()
.registerTypeAdapter(Uri.class, new UriDeserializer())
.create();
private NearbyAdapterFactory adapterFactory;
private RecyclerView recyclerView;
@ -39,7 +41,9 @@ public class NearbyListFragment extends Fragment {
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
public View onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) {
Timber.d("NearbyListFragment created");
View view = inflater.inflate(R.layout.fragment_nearby, container, false);
recyclerView = (RecyclerView) view.findViewById(R.id.listView);