summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-09-28 15:40:29 -0700
committerDianne Hackborn <hackbod@google.com>2012-09-28 15:40:29 -0700
commitfa98203c441d00d374349ce35c0c7ba2f38cc53a (patch)
tree74f25fe97f8b088baeb209568355d5bf5c909198
parentb568de03db20f124a458d914eed33cee4630bb81 (diff)
downloadextras-fa98203c441d00d374349ce35c0c7ba2f38cc53a.tar.gz
More Issue #7211769: Crash dialog from background user has non-working "report"
Bug report needs to be launched for the current user. Change-Id: I2b8f812ede43fc36c76deab544bacf88dba8fefd
-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
}