Fix RemoteController synchronization mode
Fix erroneous argument check in RemoteController syncrhonization mode setter.. Bug 12189375 Change-Id: Ib446a21f36c6e0e97752336b22aff0feb651f215
This commit is contained in:
@@ -401,7 +401,7 @@ public final class RemoteController
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public boolean setSynchronizationMode(int sync) throws IllegalArgumentException {
|
||||
if ((sync != POSITION_SYNCHRONIZATION_NONE) || (sync != POSITION_SYNCHRONIZATION_CHECK)) {
|
||||
if ((sync != POSITION_SYNCHRONIZATION_NONE) && (sync != POSITION_SYNCHRONIZATION_CHECK)) {
|
||||
throw new IllegalArgumentException("Unknown synchronization mode " + sync);
|
||||
}
|
||||
if (!mIsRegistered) {
|
||||
|
||||
Reference in New Issue
Block a user