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

Commit 759925de authored by tobitege's avatar tobitege Committed by Steve Kondik
Browse files

Fix USB intent warning on deviceAttached()

Use sendBroadcastAsUser() in deviceAttached(), the same as
deviceDetached() does.

Attached generates log entry like this:
"Calling a method in the system process without a
 qualified user"
Example log: http://pastebin.com/UBWJR4KU (see line 30)

Change-Id: I2384a3cb2fd336adeb0077c5729ee3aa66c696ca
parent 3cc9426d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -739,7 +739,7 @@ class UsbSettingsManager {
        }

        // Send broadcast to running activity with registered intent
        mUserContext.sendBroadcast(intent);
        mUserContext.sendBroadcastAsUser(intent, UserHandle.ALL);

        // Start activity with registered intent
        resolveActivity(intent, matches, defaultPackage, device, null);