Remove dead code from KeyguardUpdateMonitor

This code would have never run because mBatteryStatus is never null when this code executes.

Change-Id: I33b8952a69198166cf4b8002c3db3cd968ca95b7
Test: N/A
Bug: 238187419
This commit is contained in:
Chandru
2022-07-06 11:48:38 +00:00
committed by Chandru S
parent 9e76e35728
commit 48e81efa84

View File

@@ -2052,17 +2052,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
.getServiceStateForSubscriber(subId);
mHandler.sendMessage(
mHandler.obtainMessage(MSG_SERVICE_STATE_CHANGE, subId, 0, serviceState));
// Get initial state. Relying on Sticky behavior until API for getting info.
if (mBatteryStatus == null) {
Intent intent = mContext.registerReceiver(
null,
new IntentFilter(Intent.ACTION_BATTERY_CHANGED)
);
if (intent != null && mBatteryStatus == null) {
mBroadcastReceiver.onReceive(mContext, intent);
}
}
});
final IntentFilter allUserFilter = new IntentFilter();