From 431bbc80d06ac5acfec8916e5f256cafd35053ea Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Tue, 14 Jul 2015 16:19:06 -0700 Subject: [PATCH] [android] Remove pwo discoverers from fragment These are only needed in the discovery service. --- .../physical_web/physicalweb/NearbyBeaconsFragment.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java b/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java index 5b9fec5d..d16b2ff4 100644 --- a/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java +++ b/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java @@ -71,7 +71,6 @@ public class NearbyBeaconsFragment extends ListFragment private static final long THIRD_SCAN_TIME_MILLIS = TimeUnit.SECONDS.toMillis(10); private HashMap mUrlToPwoMetadata; private List mPwoMetadataQueue; - private List mPwoDiscoverers; private TextView mScanningAnimationTextView; private AnimationDrawable mScanningAnimationDrawable; private Handler mHandler; @@ -189,7 +188,6 @@ private void initialize(View rootView) { setHasOptionsMenu(true); mUrlToPwoMetadata = new HashMap<>(); mPwoMetadataQueue = new ArrayList<>(); - mPwoDiscoverers = new ArrayList<>(); mHandler = new Handler(); mSwipeRefreshWidget = (SwipeRefreshWidget) rootView.findViewById(R.id.swipe_refresh_widget); @@ -197,13 +195,6 @@ private void initialize(View rootView) { R.color.swipe_refresh_widget_second_color); mSwipeRefreshWidget.setOnRefreshListener(this); - mPwoDiscoverers.add(new MdnsPwoDiscoverer(getActivity())); - mPwoDiscoverers.add(new SsdpPwoDiscoverer(getActivity())); - mPwoDiscoverers.add(new BlePwoDiscoverer(getActivity())); - for (PwoDiscoverer pwoDiscoverer : mPwoDiscoverers) { - pwoDiscoverer.setCallback(this); - } - getActivity().getActionBar().setTitle(R.string.title_nearby_beacons); mNearbyDeviceAdapter = new NearbyBeaconsAdapter(); setListAdapter(mNearbyDeviceAdapter);