Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db3fe9ed authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Fix Tethering Notifications for multiple ifaces

Used to see multiple notifications if usb tethering and wifi tethering were both used.

bug:2527862
Change-Id: Idc6299c0a70564dd7c8d8d7fe13bde83723134ae
parent 2fbc10f3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -365,6 +365,13 @@ public class Tethering extends INetworkManagementEventObserver.Stub {
            return;
        }

        if (mTetheredNotification != null) {
            if (mTetheredNotification.icon == icon) {
                return;
            }
            notificationManager.cancel(mTetheredNotification.icon);
        }

        Intent intent = new Intent();
        intent.setClassName("com.android.settings", "com.android.settings.TetherSettings");
        intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);