summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2018-08-12 11:12:08 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-08-26 11:04:01 -0600
commitabb121224df116284c105014c5463b2307f8b5fc (patch)
tree4b0369a199d5084585a52ff80cc44973cefa2b48 /app/src/main/java/com
parent8ad4657d6ff4bdceb39fe4dab1283ae94218e7b6 (diff)
FragmentUtils: Make final and prevent instantiation
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r--app/src/main/java/com/wireguard/android/util/FragmentUtils.java6
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();