diff options
author | Kujtim Shala <kshala@ford.com> | 2020-02-18 11:42:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 11:42:32 +0100 |
commit | bc8196b75398c9020a5b52ee5ebcfe6d3250caea (patch) | |
tree | 4d20fd1293d65058a75770b612d121de9ea1bdc0 | |
parent | 03a593ab0259705329acaaa001c51030279641f0 (diff) | |
download | sdl_ios-bc8196b75398c9020a5b52ee5ebcfe6d3250caea.tar.gz |
Update SmartDeviceLink/SDLTouch.m
Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
-rw-r--r-- | SmartDeviceLink/SDLTouch.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLTouch.m b/SmartDeviceLink/SDLTouch.m index ff9066340..1a523a23d 100644 --- a/SmartDeviceLink/SDLTouch.m +++ b/SmartDeviceLink/SDLTouch.m @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN _identifier = touchEvent.touchEventId.integerValue; NSArray<NSNumber<SDLInt> *> * timestamp = touchEvent.timeStamp; // In the event we receive a null timestamp, we will supply a device timestamp. - if (!timestamp || ![timestamp isKindOfClass:[NSArray class]] || timestamp.count == 0) { + if ((timestamp == nil) || (timestamp.count == 0)) { _timeStamp = (NSUInteger)([[NSDate date] timeIntervalSince1970] * 1000); } else { NSNumber *timeStampNumber = (NSNumber *)timestamp[0]; |