Skip to content

Commit

Permalink
Updated comment, added service unbind on destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlgardner committed Feb 27, 2013
1 parent d819517 commit 0955ecf
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onServiceConnected(ComponentName name, IBinder service) {
wifiProbe.registerPassiveListener(MainActivity.this);
locationProbe.registerPassiveListener(MainActivity.this);

// This checkbox
// This checkbox enables or disables the pipeline
enabledCheckbox.setChecked(pipeline.isEnabled());
enabledCheckbox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
Expand Down Expand Up @@ -119,6 +119,8 @@ public void run() {
}
}
});



// Forces the pipeline to scan now
scanNowButton = (Button) findViewById(R.id.scanNowButton);
Expand All @@ -141,6 +143,13 @@ public void onClick(View v) {
}


@Override
protected void onDestroy() {
super.onDestroy();
unbindService(funfManagerConn);
}


private static final String TOTAL_COUNT_SQL = "select count(*) from " + NameValueDatabaseHelper.DATA_TABLE.name;
/**
* Queries the database of the pipeline to determine how many rows of data we have recorded so far.
Expand Down

0 comments on commit 0955ecf

Please sign in to comment.