summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Daniel Rosenberg <drosen@google.com> 2019-08-26 19:29:45 -0700
committer Daniel Rosenberg <drosen@google.com> 2019-08-27 20:55:44 +0000
commitdd3737611c640a764bcc55d8bcea1d13c7ea7989 (patch)
tree20824ddd804ffef16153a50c28c69dbdafdbd471
parenteba5156095b105650fad60f444e44ec9fbe34424 (diff)
Use mContext directly
We already have the context saved, so we can just use that. Test: Edited code to force expection path to be called, confirmed reboot happens Bug: 138952436 Bug: 140111727 Change-Id: I40e95d72c63f864131f0028c47f121463d0f6dff
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index 91ae156afdf5..88c29987d1df 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -5259,7 +5259,7 @@ public class ActivityManagerService extends IActivityManager.Stub
storageManager.commitChanges();
} catch (Exception e) {
PowerManager pm = (PowerManager)
- mInjector.getContext().getSystemService(Context.POWER_SERVICE);
+ mContext.getSystemService(Context.POWER_SERVICE);
pm.reboot("Checkpoint commit failed");
}