~fab4mazz/bus-torino/nearbyarrivals

« back to all changes in this revision

Viewing changes to src/it/reyboz/bustorino/ActivityMain.java

  • Committer: Fabio Mazza
  • Date: 2019-09-11 20:34:43 UTC
  • Revision ID: fab4mazz@gmail.com-20190911203443-rec7c4z6cna9yvgo
Added the possibility to search nearby arrivals, first version

Show diffs side-by-side

added added

removed removed

Lines of Context:
578
578
                //Go ahead with the request
579
579
                Log.d("mainActivity","Recreating stop fragment");
580
580
                swipeRefreshLayout.setVisibility(View.VISIBLE);
581
 
                NearbyStopsFragment fragment = NearbyStopsFragment.newInstance();
 
581
                NearbyStopsFragment fragment = NearbyStopsFragment.newInstance(NearbyStopsFragment.TYPE_ARRIVALS);
582
582
                Fragment oldFrag = framan.findFragmentById(R.id.resultFrame);
583
583
                FragmentTransaction ft = framan.beginTransaction();
584
584
                if(oldFrag!=null)