global: format code
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -28,14 +28,6 @@ import androidx.preference.Preference;
|
||||
public class VersionPreference extends Preference {
|
||||
@Nullable private String versionSummary;
|
||||
|
||||
private String getBackendPrettyName(final Context context, final Backend backend) {
|
||||
if (backend instanceof GoBackend)
|
||||
return context.getString(R.string.type_name_kernel_module);
|
||||
if (backend instanceof WgQuickBackend)
|
||||
return context.getString(R.string.type_name_go_userspace);
|
||||
return "";
|
||||
}
|
||||
|
||||
public VersionPreference(final Context context, final AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
@@ -50,6 +42,14 @@ public class VersionPreference extends Preference {
|
||||
});
|
||||
}
|
||||
|
||||
private String getBackendPrettyName(final Context context, final Backend backend) {
|
||||
if (backend instanceof GoBackend)
|
||||
return context.getString(R.string.type_name_kernel_module);
|
||||
if (backend instanceof WgQuickBackend)
|
||||
return context.getString(R.string.type_name_go_userspace);
|
||||
return "";
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
|
||||
Reference in New Issue
Block a user