1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-02 13:24:09 +00:00

Small improvements

This commit is contained in:
M66B 2015-12-09 19:25:40 +01:00
parent fa36afe3c6
commit 790decd25d

View file

@ -313,7 +313,7 @@ public class SinkholeService extends VpnService {
// Create bitmap
int height = Util.dips2pixels(96, SinkholeService.this);
int width = getResources().getDisplayMetrics().widthPixels;
int width = Util.dips2pixels(96 * 5, SinkholeService.this);
Log.i(TAG, "h=" + height + " w=" + width);
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
@ -391,10 +391,10 @@ public class SinkholeService extends VpnService {
.setContent(remoteViews)
.setContentIntent(pi)
.setCategory(Notification.CATEGORY_STATUS)
.setVisibility(Notification.VISIBILITY_SECRET)
.setVisibility(Notification.VISIBILITY_PUBLIC)
.setPriority(Notification.PRIORITY_DEFAULT)
.setColor(ContextCompat.getColor(SinkholeService.this, R.color.colorPrimary))
.setAutoCancel(true);
.setOngoing(true);
NotificationManagerCompat.from(SinkholeService.this).notify(NOTIFY_TRAFFIC, builder.build());
}
}