global: format code
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -47,8 +47,7 @@ public class LogExporterPreference extends Preference {
|
||||
final Process process = Runtime.getRuntime().exec(new String[]{
|
||||
"logcat", "-b", "all", "-d", "-v", "threadtime", "*:V"});
|
||||
try (final BufferedReader stdout = new BufferedReader(new InputStreamReader(process.getInputStream()));
|
||||
final BufferedReader stderr = new BufferedReader(new InputStreamReader(process.getErrorStream())))
|
||||
{
|
||||
final BufferedReader stderr = new BufferedReader(new InputStreamReader(process.getErrorStream()))) {
|
||||
String line;
|
||||
while ((line = stdout.readLine()) != null) {
|
||||
outputFile.getOutputStream().write(line.getBytes());
|
||||
|
||||
@@ -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