package es.craftsmanship.toledo.katangapp.activities;

import es.craftsmanship.toledo.katangapp.models.BusStopResult;
import es.craftsmanship.toledo.katangapp.models.QueryResult;

import android.content.Intent;

import android.os.Bundle;

import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import java.util.List;

/**
 * @author Cristóbal Hermida
 */
public class ShowStopsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_show_stops);

        Intent intent = getIntent();

        QueryResult queryResult = (QueryResult) intent.getSerializableExtra("queryResult");

        List<BusStopResult> stops = queryResult.getResults();

        RecyclerView recyclerView = (RecyclerView) findViewById(R.id.stops);

        recyclerView.setHasFixedSize(true);

        LinearLayoutManager layoutManager = new LinearLayoutManager(this);

        recyclerView.setLayoutManager(layoutManager);

        StopsAdapter adapter = new StopsAdapter(stops);

        recyclerView.setAdapter(adapter);
    }

}
@@ -1004,29 +1004,25 @@
     
-LinearLayoutManager l
+recyclerView.setL
 ayou
@@ -1029,19 +1029,17 @@
 tManager
- = 
+(
 new Line
@@ -1059,16 +1059,17 @@
 er(this)
+)
 ;%0A%0A     
@@ -1091,135 +1091,39 @@
 .set
-LayoutManager(layoutManager);%0A%0A        StopsAdapter adapter = new StopsAdapter(stops);%0A%0A        recyclerView.setAdapter(adapter
+Adapter(new StopsAdapter(stops)
 );%0A 

remove variables