Fix the NPE when checking mRebootReason
Bug: 21584198 Change-Id: Ie11092dbc771b54bd049d258dc705835a3eda494
This commit is contained in:
@@ -408,7 +408,7 @@ public final class ShutdownThread extends Thread {
|
||||
}
|
||||
|
||||
// If it's to reboot into recovery, invoke uncrypt via init service.
|
||||
if (mRebootReason.equals(PowerManager.REBOOT_RECOVERY)) {
|
||||
if (PowerManager.REBOOT_RECOVERY.equals(mRebootReason)) {
|
||||
uncrypt();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user