Merge "Fix IllegalStateException in KeyboardBaclightController" into udc-dev

This commit is contained in:
Vaibhav Devmurari
2023-03-24 13:47:50 +00:00
committed by Android (Google) Code Review

View File

@@ -344,7 +344,7 @@ final class KeyboardBacklightController implements
throw new IllegalStateException("The calling process has no registered "
+ "KeyboardBacklightListener.");
}
if (record.mListener != listener) {
if (record.mListener.asBinder() != listener.asBinder()) {
throw new IllegalStateException("The calling process has a different registered "
+ "KeyboardBacklightListener.");
}