计步ok了
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.today.step.lib;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
/**
|
||||
* Created by jiahongfei on 2017/9/27.
|
||||
*/
|
||||
|
||||
public class TodayStepShutdownReceiver extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = "TodayStepShutdownReceiver";
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {
|
||||
Logger.e(TAG,"TodayStepShutdownReceiver");
|
||||
PreferencesHelper.setShutdown(context,true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user