Skip to content

Commit

Permalink
Version 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
slowscript committed Dec 14, 2023
1 parent a67f3d4 commit 09f0060
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/slowscript/warpinator/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/1070.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Option to connect manually when mDNS is blocked by network
- Updated translations
- Bug fixes

0 comments on commit 09f0060

Please sign in to comment.