预警方向传值添加,方法名称修改
This commit is contained in:
@@ -47,14 +47,14 @@ public class V2XManager implements IV2XProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void warningChangedForListenerWithType(int type, String command) {
|
||||
public void warningChangedForListenerWithDirection(int direction, String command) {
|
||||
List<IV2XListener> listeners = mListeners.get(command);
|
||||
if (listeners != null && !listeners.isEmpty()) {
|
||||
Iterator<IV2XListener> iterator = listeners.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
IV2XListener listener = iterator.next();
|
||||
if (listener != null) {
|
||||
listener.warningChangedWithType(type);
|
||||
listener.warningChangedWithDirection(direction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user