diff options
author | Harsh Shandilya <harsh@prjkt.io> | 2018-08-12 11:12:08 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-08-26 11:04:01 -0600 |
commit | 4a3752eb28d245e8f3ee383a5e0ce7952bd288e3 (patch) | |
tree | 4b0369a199d5084585a52ff80cc44973cefa2b48 /app/src | |
parent | f881a285e2f15a588c9db71520d71c0dd73e81d1 (diff) |
FragmentUtils: Make final and prevent instantiation
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to 'app/src')
-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(); |