mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Code review fixes.
This commit is contained in:
parent
6d459a0bc9
commit
81e8ddf832
1 changed files with 1 additions and 2 deletions
|
@ -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? {
|
||||
|
|
Loading…
Reference in a new issue