notification fixed

This commit is contained in:
esefxdz committed 2026-09-06 13:07:37 +03:00
1 parent 4718a5912a
commit 6d8a923475
4 files changed
+5 -4

No files matched your search

@@ -172,13 +172,13 @@ class MainActivity : FlutterActivity() {
}
val publicVersion = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
.setSmallIcon(R.drawable.notification_status_icon)
.setSmallIcon(R.drawable.notification_icon)
.setContentTitle("Revolt VPN")
.setContentText("VPN is active")
.build()
val builder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
.setSmallIcon(R.drawable.notification_status_icon)
.setSmallIcon(R.drawable.notification_icon)
.setContentTitle(title)
.setContentText(text)
.setColorized(true)
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

+1 -1
View File
@@ -120,7 +120,7 @@ class VpnConnection extends ChangeNotifier {
await _vless.initializeVless(
providerBundleIdentifier: 'com.paladinvpn.app',
notificationIconResourceType: 'drawable',
notificationIconResourceName: 'notification_status_icon',
notificationIconResourceName: 'notification_icon',
);
if (_disposed) return;
_initialized = true;
@@ -655,7 +655,8 @@ class XrayVPNService : VpnService() {
android.app.Notification.Builder(this)
}
val icon = android.R.drawable.ic_dialog_info
val icon = resources.getIdentifier("notification_icon", "drawable", packageName)
.takeIf { it != 0 } ?: android.R.drawable.ic_dialog_info
val notification = builder
.setContentTitle("VPN Service")