diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2018-08-12 11:12:08 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-08-26 11:04:01 -0600 |
commit | abb121224df116284c105014c5463b2307f8b5fc (patch) | |
tree | 4b0369a199d5084585a52ff80cc44973cefa2b48 /app/src/main | |
parent | 8ad4657d6ff4bdceb39fe4dab1283ae94218e7b6 (diff) |
FragmentUtils: Make final and prevent instantiation
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/wireguard/android/util/FragmentUtils.java | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |