mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-19 21:05:25 +08:00
Color fix
This commit is contained in:
parent
d04b93edd0
commit
407f1386ec
@ -277,6 +277,7 @@ public class CaptureService extends VpnService implements Runnable {
|
||||
|
||||
mNotificationBuilder = new NotificationCompat.Builder(this, NOTIFY_CHAN_VPNSERVICE)
|
||||
.setSmallIcon(R.drawable.ic_logo)
|
||||
.setColor(getResources().getColor(R.color.colorPrimary))
|
||||
.setContentIntent(pi)
|
||||
.setOngoing(true)
|
||||
.setAutoCancel(false)
|
||||
@ -284,9 +285,6 @@ public class CaptureService extends VpnService implements Runnable {
|
||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||
.setPriority(NotificationCompat.PRIORITY_LOW); // see IMPORTANCE_LOW
|
||||
|
||||
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
mNotificationBuilder.setColor(getColor(R.color.colorPrimary));
|
||||
|
||||
if(Utils.isTv(this)) {
|
||||
// This is the icon which is visualized
|
||||
Drawable banner = ContextCompat.getDrawable(this, R.drawable.banner);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user