From ad7a1be6345b19920f9dd221483638915071985e Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 13 Jun 2018 19:30:42 +0800 Subject: [PATCH] Fix toast failures --- mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt index 475284df..fc943d15 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt @@ -61,7 +61,7 @@ class TetheringService : IpNeighbourMonitoringService(), UpstreamMonitor.Callbac routings.remove(downstream) failed = true } - if (failed) Toast.makeText(this, getText(R.string.noisy_su_failure), Toast.LENGTH_SHORT).show() + if (failed) app.toast(R.string.noisy_su_failure) } else if (!receiverRegistered) { registerReceiver(receiver, IntentFilter(TetheringManager.ACTION_TETHER_STATE_CHANGED)) app.cleanRoutings[this] = {