summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bugmailer/src/com/android/commands/sendbug/SendBug.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bugmailer/src/com/android/commands/sendbug/SendBug.java b/bugmailer/src/com/android/commands/sendbug/SendBug.java
index 398bdc22..f47ff9b3 100644
--- a/bugmailer/src/com/android/commands/sendbug/SendBug.java
+++ b/bugmailer/src/com/android/commands/sendbug/SendBug.java
@@ -27,6 +27,7 @@ import android.net.Uri;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemProperties;
+import android.os.UserHandle;
import android.util.Log;
import java.io.File;
@@ -74,8 +75,8 @@ public class SendBug {
return;
}
try {
- am.startActivity(null, intent, intent.getType(), null, null, 0, 0,
- null, null, null);
+ am.startActivityAsUser(null, intent, intent.getType(), null, null, 0, 0,
+ null, null, null, UserHandle.USER_CURRENT);
} catch (RemoteException e) {
// ignore
}