import android.app.ActivityManager;
import android.content.BroadcastReceiver;
+import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import com.ic.iclooger.ICLogger;
import com.ic.launcher.NotificationActivity;
import com.ic.launcher.R;
+import com.ic.launcher.utils.Constants;
import org.threeten.bp.Instant;
import org.threeten.bp.LocalDateTime;
} else {
int delete = mContext.getContentResolver().delete(Uri.parse(NOTIFICATIONS), null, null);
ICLogger.d("notification delete count => " + delete);
+ //干掉顶部的通知
+ ContentValues contentValues = new ContentValues();
+ //分类是心率的包名
+ contentValues.put("s_key", "has_missed_phone");
+ //1表示有,0表示没有
+ contentValues.put("s_value", 0);
+ mContext.getContentResolver().insert(Uri.parse(Constants.SETTINGS), contentValues);
+
+ ContentValues smsContentValues = new ContentValues();
+ //分类是心率的包名
+ smsContentValues.put("s_key", "sms_unread");
+ //1表示有,0表示没有
+ smsContentValues.put("s_value", 0);
+ mContext.getContentResolver().insert(Uri.parse(Constants.SETTINGS), contentValues);
}
});
}