Merge "Fix IllegalStateException in KeyboardBaclightController" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
55e626a4a5
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user