mirror of https://github.com/M66B/NetGuard.git
parent
7c57d3a52c
commit
832130bdbf
|
@ -368,13 +368,13 @@ public class SinkholeService extends VpnService {
|
||||||
PendingIntent piMain = PendingIntent.getActivity(this, 0, riMain, PendingIntent.FLAG_CANCEL_CURRENT);
|
PendingIntent piMain = PendingIntent.getActivity(this, 0, riMain, PendingIntent.FLAG_CANCEL_CURRENT);
|
||||||
|
|
||||||
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
|
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
|
||||||
.setSmallIcon(R.mipmap.ic_launcher)
|
.setSmallIcon(R.drawable.ic_security_white_24dp)
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setContentText(getString(R.string.msg_started))
|
.setContentText(getString(R.string.msg_started))
|
||||||
.setContentIntent(piMain)
|
.setContentIntent(piMain)
|
||||||
.setCategory(Notification.CATEGORY_STATUS)
|
.setCategory(Notification.CATEGORY_STATUS)
|
||||||
.setVisibility(Notification.VISIBILITY_SECRET)
|
.setVisibility(Notification.VISIBILITY_SECRET)
|
||||||
.setColor(ContextCompat.getColor(this, R.color.colorAccent));
|
.setColor(ContextCompat.getColor(this, R.color.colorPrimary));
|
||||||
|
|
||||||
Intent intent = new Intent(this, SinkholeService.class);
|
Intent intent = new Intent(this, SinkholeService.class);
|
||||||
intent.putExtra(EXTRA_COMMAND, Command.stop);
|
intent.putExtra(EXTRA_COMMAND, Command.stop);
|
||||||
|
@ -390,7 +390,7 @@ public class SinkholeService extends VpnService {
|
||||||
PendingIntent piMain = PendingIntent.getActivity(this, 0, riMain, PendingIntent.FLAG_CANCEL_CURRENT);
|
PendingIntent piMain = PendingIntent.getActivity(this, 0, riMain, PendingIntent.FLAG_CANCEL_CURRENT);
|
||||||
|
|
||||||
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
|
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
|
||||||
.setSmallIcon(R.mipmap.ic_launcher)
|
.setSmallIcon(R.drawable.ic_security_white_24dp)
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setContentText(getString(R.string.msg_stopped))
|
.setContentText(getString(R.string.msg_stopped))
|
||||||
.setContentIntent(piMain)
|
.setContentIntent(piMain)
|
||||||
|
@ -417,7 +417,7 @@ public class SinkholeService extends VpnService {
|
||||||
PendingIntent piMain = PendingIntent.getActivity(this, 0, riMain, PendingIntent.FLAG_CANCEL_CURRENT);
|
PendingIntent piMain = PendingIntent.getActivity(this, 0, riMain, PendingIntent.FLAG_CANCEL_CURRENT);
|
||||||
|
|
||||||
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
|
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
|
||||||
.setSmallIcon(R.mipmap.ic_launcher)
|
.setSmallIcon(R.drawable.ic_security_white_24dp)
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setContentText(getString(R.string.msg_revoked))
|
.setContentText(getString(R.string.msg_revoked))
|
||||||
.setContentIntent(piMain)
|
.setContentIntent(piMain)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 428 B |
Binary file not shown.
After Width: | Height: | Size: 288 B |
Binary file not shown.
After Width: | Height: | Size: 507 B |
Binary file not shown.
After Width: | Height: | Size: 702 B |
Binary file not shown.
After Width: | Height: | Size: 913 B |
Loading…
Reference in New Issue