Code review fixes.

This commit is contained in:
Onuray Sahin 2022-09-29 17:40:26 +03:00
parent 6d459a0bc9
commit 81e8ddf832

View file

@ -113,8 +113,7 @@ class ParseDeviceUserAgentUseCase @Inject constructor() {
}
private fun isMobile(browserSegments: List<String>): Boolean {
return browserSegments.lastOrNull()?.startsWith("Safari").orFalse() &&
browserSegments.getOrNull(browserSegments.size - 2)?.startsWith("Mobile").orFalse()
return browserSegments.getOrNull(browserSegments.size - 2)?.startsWith("Mobile").orFalse()
}
private fun getMobileBrowserName(browserSegments: List<String>): String? {