mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-05 23:17:01 +02:00
change minimal requirement to android 4.0
This commit is contained in:
parent
dc946582a4
commit
14b3eefbaf
4 changed files with 3 additions and 5 deletions
|
@ -6,7 +6,6 @@ import android.app.Service;
|
|||
import android.content.Intent;
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.util.Log;
|
||||
|
||||
public class ForegroundService extends Service {
|
||||
|
@ -72,7 +71,7 @@ public class ForegroundService extends Service {
|
|||
new Intent(this, I2PD.class), 0);
|
||||
|
||||
// Set the info for the views that show in the notification panel.
|
||||
Notification notification = new NotificationCompat.Builder(this)
|
||||
Notification notification = new Notification.Builder(this)
|
||||
.setSmallIcon(R.drawable.itoopie_notification_icon) // the status icon
|
||||
.setTicker(text) // the status text
|
||||
.setWhen(System.currentTimeMillis()) // the time stamp
|
||||
|
@ -85,4 +84,4 @@ public class ForegroundService extends Service {
|
|||
//mNM.notify(NOTIFICATION, notification);
|
||||
startForeground(NOTIFICATION, notification);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue