Skip to content

Commit

Permalink
Merge pull request google#472 from cco3/discovery
Browse files Browse the repository at this point in the history
[android] Remove pwo discoverers from fragment
  • Loading branch information
cco3 committed Jul 15, 2015
2 parents bc8bd15 + 431bbc8 commit c377b55
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class NearbyBeaconsFragment extends ListFragment
private static final long THIRD_SCAN_TIME_MILLIS = TimeUnit.SECONDS.toMillis(10);
private HashMap<String, PwoMetadata> mUrlToPwoMetadata;
private List<PwoMetadata> mPwoMetadataQueue;
private List<PwoDiscoverer> mPwoDiscoverers;
private TextView mScanningAnimationTextView;
private AnimationDrawable mScanningAnimationDrawable;
private Handler mHandler;
Expand Down Expand Up @@ -189,21 +188,13 @@ 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);
mSwipeRefreshWidget.setColorSchemeResources(R.color.swipe_refresh_widget_first_color,
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);
Expand Down

0 comments on commit c377b55

Please sign in to comment.