Skip to content

Commit 06f31df

Browse files
committed
Update CounterActivity.java
1 parent d471191 commit 06f31df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/starboardland/pedometer/CounterActivity.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ protected void onResume() {
3939
protected void onPause() {
4040
super.onPause();
4141
activityRunning = false;
42-
// sensorManager.unregisterListener(this);
42+
// if you unregister the last listener, the hardware will stop detecting step events
43+
// sensorManager.unregisterListener(this);
4344
}
4445

4546
@Override

0 commit comments

Comments
 (0)