summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2019-11-12 15:33:22 -0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-11-16 00:27:33 +0000
commit818d8813f7bbab13ebccf5ab291fe3de8df5157e (patch)
tree83f4c72f75ee249187524cd8ddfdd178752abb87
parent859ead528cd09f6fdf3a85df390745054058d12c (diff)
downloadbase-818d8813f7bbab13ebccf5ab291fe3de8df5157e.tar.gz
Actually use mContext directly
I40e95d72c63f864131f0028c47f121463d0f6dff (Use mContext directly) lost a needed line in a rebase Test: Forced commit to return exception, checked that device reboots Bug: 138952436 Merged-In: Idb7cb9a5b7c4c0d237ece9716932a260956a0109 Change-Id: I8e7484631cd76965e660544a1af9f567dc5d3a34 (cherry picked from commit c5fc5fe3266a7b01f689e2c981babadca5360836)
-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 078fcef0f88b..c2482ef77a7a 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -5262,7 +5262,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");
}