summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2016-12-17 13:50:51 +0100
committerArne Schwabe <arne@rfc2549.org>2016-12-17 13:50:51 +0100
commit836ead90e67f0d38cae704121e037bb3b7157dd8 (patch)
tree9c18665fc4cc066514bbad5266a3e0454fc81ed8 /main/src
parent7939e5af2252f47ab79dff80682388bdbced1fa5 (diff)
LRU sorted the wrong way
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/fragments/VPNProfileList.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/VPNProfileList.java b/main/src/main/java/de/blinkt/openvpn/fragments/VPNProfileList.java
index 109ecf9f..df98e346 100644
--- a/main/src/main/java/de/blinkt/openvpn/fragments/VPNProfileList.java
+++ b/main/src/main/java/de/blinkt/openvpn/fragments/VPNProfileList.java
@@ -356,7 +356,7 @@ public class VPNProfileList extends ListFragment implements OnClickListener, Vpn
return 1;
// Copied from Long.compare
- return (lhs.mLastUsed < rhs.mLastUsed) ? -1 : ((lhs.mLastUsed == rhs.mLastUsed) ? 0 : 1);
+ return (lhs.mLastUsed > rhs.mLastUsed) ? -1 : ((lhs.mLastUsed == rhs.mLastUsed) ? 0 : 1);
}
}