Fix bug 1982892 - batteryservice turns off device even while plugged in
Also, make the battery service do it, not some keyguard thing.
This commit is contained in:
@@ -35,7 +35,6 @@ import static android.provider.Telephony.Intents.EXTRA_SHOW_SPN;
|
||||
import static android.provider.Telephony.Intents.EXTRA_SPN;
|
||||
import static android.provider.Telephony.Intents.SPN_STRINGS_UPDATED_ACTION;
|
||||
|
||||
import com.android.internal.app.ShutdownThread;
|
||||
import com.android.internal.telephony.IccCard;
|
||||
import com.android.internal.telephony.TelephonyIntents;
|
||||
import android.util.Log;
|
||||
@@ -295,13 +294,6 @@ public class KeyguardUpdateMonitor {
|
||||
shouldShowBatteryInfo(), pluggedIn, batteryLevel);
|
||||
}
|
||||
}
|
||||
|
||||
// shut down gracefully if our battery is critically low and we are not powered
|
||||
if (batteryLevel == 0 &&
|
||||
pluggedInStatus != BATTERY_STATUS_CHARGING &&
|
||||
pluggedInStatus != BATTERY_STATUS_UNKNOWN) {
|
||||
ShutdownThread.shutdown(mContext, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user