From 0ccdfa5caaff2784411ccab941b7702d993f23f9 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 10 Mar 2023 00:24:13 -0500 Subject: [PATCH] Refine updateNotif in TetheringService --- mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt index 8dd110b6..cc9049f9 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt @@ -101,7 +101,7 @@ class TetheringService : IpNeighbourMonitoringService(), TetheringManager.Tether TetheringManager.registerTetheringEventCallbackCompat(this, this) IpNeighbourMonitor.registerCallback(this) } - updateNotification() + super.updateNotification() } launch(Dispatchers.Main) { binder.routingsChanged() } } @@ -111,7 +111,7 @@ class TetheringService : IpNeighbourMonitoringService(), TetheringManager.Tether override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { BootReceiver.startIfEnabled() // call this first just in case we are shutting down immediately - updateNotification() + super.updateNotification() launch { if (intent != null) { for (iface in intent.getStringArrayExtra(EXTRA_ADD_INTERFACES) ?: emptyArray()) {