mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
flipped the if/else for performance optimization
This commit is contained in:
parent
be83702fd7
commit
e8eda963ae
1 changed files with 3 additions and 3 deletions
|
@ -210,10 +210,10 @@ public class DisplayUtils {
|
|||
|
||||
String[] parts = dateString.toString().split(",");
|
||||
if (parts.length == 2) {
|
||||
if(parts[0].contains(":") && !parts[1].contains(":")) {
|
||||
return parts[1];
|
||||
} else if(parts[1].contains(":") && !parts[0].contains(":")) {
|
||||
if (parts[1].contains(":") && !parts[0].contains(":")) {
|
||||
return parts[0];
|
||||
} else if (parts[0].contains(":") && !parts[1].contains(":")) {
|
||||
return parts[1];
|
||||
}
|
||||
}
|
||||
//dateString contains unexpected format. use localized, absolute date.
|
||||
|
|
Loading…
Reference in a new issue