From 09f006038a8b9583a8ca5eee401002afe00ea377 Mon Sep 17 00:00:00 2001 From: slowscript Date: Thu, 14 Dec 2023 12:26:53 +0100 Subject: [PATCH] Version 1.7 --- app/build.gradle | 4 ++-- app/src/main/java/slowscript/warpinator/MainActivity.java | 4 ++++ fastlane/metadata/android/en-US/changelogs/1070.txt | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/1070.txt diff --git a/app/build.gradle b/app/build.gradle index 841f9f5..8904aea 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId 'slowscript.warpinator' minSdkVersion 21 //Required by NSD (attributes) targetSdkVersion 33 - versionCode 1061 - versionName "1.6.1" + versionCode 1070 + versionName "1.7" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/slowscript/warpinator/MainActivity.java b/app/src/main/java/slowscript/warpinator/MainActivity.java index ad2dce7..9dcb084 100644 --- a/app/src/main/java/slowscript/warpinator/MainActivity.java +++ b/app/src/main/java/slowscript/warpinator/MainActivity.java @@ -57,6 +57,7 @@ public class MainActivity extends AppCompatActivity implements ActivityCompat.On LinearLayout layoutNotFound; TextView txtError, txtNoNetwork, txtOutgroup; BroadcastReceiver receiver; + boolean allowSaveLog = false; @Override protected void onCreate(Bundle savedInstanceState) { @@ -88,6 +89,7 @@ protected void onCreate(Bundle savedInstanceState) { AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); break; } + allowSaveLog = prefs.getBoolean("debugLog", false); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { if (checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) { @@ -158,6 +160,8 @@ void startMainService() { public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_main, menu); + MenuItem menuSaveLog = menu.findItem(R.id.save_log); + menuSaveLog.setEnabled(allowSaveLog); return true; } diff --git a/fastlane/metadata/android/en-US/changelogs/1070.txt b/fastlane/metadata/android/en-US/changelogs/1070.txt new file mode 100644 index 0000000..f421eb2 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/1070.txt @@ -0,0 +1,3 @@ +- Option to connect manually when mDNS is blocked by network +- Updated translations +- Bug fixes