From 9652fe99df68db5c483ea8e170f6e09f06a5e0d1 Mon Sep 17 00:00:00 2001 From: Eric Kuck Date: Wed, 25 Jul 2018 19:30:34 -0500 Subject: TunnelDetailFragment now restores state correctly after process death Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/util/SortedKeyedList.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java/com/wireguard/util/SortedKeyedList.java') diff --git a/app/src/main/java/com/wireguard/util/SortedKeyedList.java b/app/src/main/java/com/wireguard/util/SortedKeyedList.java index f166cd92..a57e9739 100644 --- a/app/src/main/java/com/wireguard/util/SortedKeyedList.java +++ b/app/src/main/java/com/wireguard/util/SortedKeyedList.java @@ -5,6 +5,8 @@ package com.wireguard.util; +import android.support.annotation.Nullable; + import java.util.Collection; import java.util.Comparator; import java.util.Set; @@ -17,10 +19,12 @@ import java.util.Set; public interface SortedKeyedList> extends KeyedList { Comparator comparator(); + @Nullable K firstKey(); Set keySet(); + @Nullable K lastKey(); Collection values(); -- cgit v1.2.3-59-g8ed1b