fix wrapper for cm 4.2.5
[adBlock.git] / src / de / ub0r / android / adBlock / HelperAPI5.java
blob96e3e534b057f152e2037d315191702f9c3d0fc3
1 /*
2 * Copyright (C) 2009 Felix Bechstein
3 *
4 * This file is part of WebSMS.
5 *
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License as published by the Free Software
8 * Foundation; either version 3 of the License, or (at your option) any later
9 * version.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program; If not, see <http://www.gnu.org/licenses/>.
19 package de.ub0r.android.adBlock;
21 import android.app.Notification;
22 import android.app.Service;
24 /**
25 * Helper class to set/unset background for api5 systems.
27 * @author flx
29 public class HelperAPI5 {
30 /**
31 * Run Service in foreground.
33 * @see Service.startForeground()
34 * @param service
35 * the Service
36 * @param id
37 * notification id
38 * @param notification
39 * notification
41 final void startForeground(final Service service, final int id,
42 final Notification notification) {
43 service.startForeground(id, notification);