FragmentUtils: Make final and prevent instantiation

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-08-12 11:12:08 +05:30 committed by Jason A. Donenfeld
parent 8ad4657d6f
commit abb121224d

View File

@ -11,7 +11,11 @@ import android.view.ContextThemeWrapper;
import com.wireguard.android.activity.SettingsActivity; import com.wireguard.android.activity.SettingsActivity;
public class FragmentUtils { public final class FragmentUtils {
private FragmentUtils() {
// Prevent instantiation
}
public static SettingsActivity getPrefActivity(final Preference preference) { public static SettingsActivity getPrefActivity(final Preference preference) {
final Context context = preference.getContext(); final Context context = preference.getContext();