diff options
| author | 2014-08-07 10:35:42 +0000 | |
|---|---|---|
| committer | 2014-08-05 00:35:13 +0000 | |
| commit | 2e7cf64842aadcf198ee97d137ccbb02ee2115fd (patch) | |
| tree | 3159bf0b5cef8000450d86a4d3f8ad0990da95cf | |
| parent | 956afc2ba79f50bb8025c6d334653e3c3419b480 (diff) | |
| parent | cead2839a5ed586e18299b84c4c93f095b8498b7 (diff) | |
Merge "Permit crash report button for user profiles" into lmp-dev
| -rwxr-xr-x | services/core/java/com/android/server/am/ActivityManagerService.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 07ad9e4c4cd6..e0d4aad90d0b 100755 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -10585,14 +10585,16 @@ public final class ActivityManagerService extends ActivityManagerNative } void startAppProblemLocked(ProcessRecord app) { - if (app.userId == mCurrentUserId) { - app.errorReportReceiver = ApplicationErrorReport.getErrorReportReceiver( - mContext, app.info.packageName, app.info.flags); - } else { - // If this app is not running under the current user, then we - // can't give it a report button because that would require - // launching the report UI under a different user. - app.errorReportReceiver = null; + // If this app is not running under the current user, then we + // can't give it a report button because that would require + // launching the report UI under a different user. + app.errorReportReceiver = null; + + for (int userId : mCurrentProfileIds) { + if (app.userId == userId) { + app.errorReportReceiver = ApplicationErrorReport.getErrorReportReceiver( + mContext, app.info.packageName, app.info.flags); + } } skipCurrentReceiverLocked(app); } |