Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08136074 authored by Daniel Rosenberg's avatar Daniel Rosenberg Committed by android-build-team Robot
Browse files

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
(cherry picked from commit dd373761)
parent 955644cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
        }