From abb121224df116284c105014c5463b2307f8b5fc Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 12 Aug 2018 11:12:08 +0530 Subject: FragmentUtils: Make final and prevent instantiation Signed-off-by: Harsh Shandilya --- app/src/main/java/com/wireguard/android/util/FragmentUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/com/wireguard/android/util/FragmentUtils.java b/app/src/main/java/com/wireguard/android/util/FragmentUtils.java index 49ec7fd7..1c6a7fe3 100644 --- a/app/src/main/java/com/wireguard/android/util/FragmentUtils.java +++ b/app/src/main/java/com/wireguard/android/util/FragmentUtils.java @@ -11,7 +11,11 @@ import android.view.ContextThemeWrapper; import com.wireguard.android.activity.SettingsActivity; -public class FragmentUtils { +public final class FragmentUtils { + + private FragmentUtils() { + // Prevent instantiation + } public static SettingsActivity getPrefActivity(final Preference preference) { final Context context = preference.getContext(); -- cgit v1.2.3