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

Commit 84949f5c authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix GPS icon not showing for secondary users

Watch for high power usage broadcasts from all users in the statusbar.

Bug: 17647654
Change-Id: I2c6c5a218d38438415a450cfa2f9328763af3f50
parent 5e418a66
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ public class LocationControllerImpl extends BroadcastReceiver implements Locatio


        IntentFilter filter = new IntentFilter();
        IntentFilter filter = new IntentFilter();
        filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION);
        filter.addAction(LocationManager.HIGH_POWER_REQUEST_CHANGE_ACTION);
        context.registerReceiver(this, filter);
        context.registerReceiverAsUser(this, UserHandle.ALL, filter, null, null);


        mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
        mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
        mStatusBarManager
        mStatusBarManager