Skip to content

Commit d6c525f

Browse files
authored
Merge pull request #9 from CodeDead/release/v1.5.3
feat: version bump, improved dark mode, new app icon, improved screen…
2 parents 0ff5871 + a69ce42 commit d6c525f

33 files changed

+115
-40
lines changed

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ android {
55
namespace "com.codedead.advancedportchecker"
66
defaultConfig {
77
applicationId "com.codedead.advancedportchecker"
8-
minSdk 30
8+
minSdk 29
99
targetSdk 35
10-
versionCode 15
11-
versionName '1.5.2'
10+
versionCode 16
11+
versionName '1.5.3'
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
vectorDrawables.useSupportLibrary = true
1414
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
<application
1414
android:name=".domain.object.Runner"
1515
android:allowBackup="true"
16+
android:dataExtractionRules="@xml/data_extraction_rules"
1617
android:fullBackupContent="@xml/backup_descriptor"
1718
android:hardwareAccelerated="true"
1819
android:icon="@mipmap/ic_launcher"
1920
android:label="@string/app_name"
2021
android:largeHeap="true"
2122
android:roundIcon="@mipmap/ic_launcher_round"
2223
android:supportsRtl="true"
23-
android:theme="@style/AppTheme"
24+
android:theme="@style/Theme.AdvancedPortChecker"
2425
tools:ignore="GoogleAppIndexingWarning">
2526
<activity
2627
android:name=".gui.activity.SettingsActivity"
-3.23 KB
Loading

app/src/main/java/com/codedead/advancedportchecker/gui/activity/AboutActivity.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
import android.content.res.Configuration;
77
import android.os.Bundle;
88

9+
import androidx.activity.EdgeToEdge;
10+
import androidx.core.graphics.Insets;
11+
import androidx.core.view.ViewCompat;
12+
import androidx.core.view.WindowInsetsCompat;
913
import androidx.preference.PreferenceManager;
1014

1115
import com.google.android.material.bottomnavigation.BottomNavigationView;
@@ -64,8 +68,15 @@ protected void onCreate(final Bundle savedInstanceState) {
6468
LocaleHelper.setLocale(this, sharedPreferences.getString("appLanguage", "en"));
6569

6670
super.onCreate(savedInstanceState);
67-
resetTitle();
71+
EdgeToEdge.enable(this);
6872
setContentView(R.layout.activity_about);
73+
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
74+
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
75+
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
76+
return insets;
77+
});
78+
79+
resetTitle();
6980

7081
if (getSupportActionBar() != null)
7182
getSupportActionBar().setDisplayHomeAsUpEnabled(true);

app/src/main/java/com/codedead/advancedportchecker/gui/activity/ScanActivity.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
import android.os.VibrationEffect;
1313
import android.os.Vibrator;
1414

15+
import androidx.activity.EdgeToEdge;
1516
import androidx.annotation.NonNull;
17+
import androidx.core.graphics.Insets;
18+
import androidx.core.view.ViewCompat;
19+
import androidx.core.view.WindowInsetsCompat;
1620
import androidx.preference.PreferenceManager;
1721
import androidx.core.app.NotificationCompat;
1822
import androidx.core.content.ContextCompat;
@@ -80,7 +84,13 @@ protected void onCreate(final Bundle savedInstanceState) {
8084

8185
resetTitle();
8286
super.onCreate(savedInstanceState);
87+
EdgeToEdge.enable(this);
8388
setContentView(R.layout.activity_scan);
89+
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
90+
final Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
91+
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
92+
return insets;
93+
});
8494

8595
scanController = new ScanController(this.getApplicationContext(), this);
8696

app/src/main/java/com/codedead/advancedportchecker/gui/activity/SettingsActivity.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
import android.view.MenuItem;
1212
import android.widget.Toast;
1313

14+
import androidx.activity.EdgeToEdge;
1415
import androidx.annotation.NonNull;
1516
import androidx.appcompat.app.ActionBar;
1617
import androidx.appcompat.app.AppCompatActivity;
1718
import androidx.core.app.ActivityCompat;
1819
import androidx.core.content.ContextCompat;
20+
import androidx.core.graphics.Insets;
21+
import androidx.core.view.ViewCompat;
22+
import androidx.core.view.WindowInsetsCompat;
1923
import androidx.preference.EditTextPreference;
2024
import androidx.preference.PreferenceFragmentCompat;
2125
import androidx.preference.PreferenceManager;
@@ -37,7 +41,14 @@ protected void onCreate(final Bundle savedInstanceState) {
3741

3842
resetTitle();
3943
super.onCreate(savedInstanceState);
44+
EdgeToEdge.enable(this);
4045
setContentView(R.layout.settings_activity);
46+
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
47+
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
48+
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
49+
return insets;
50+
});
51+
4152
getSupportFragmentManager()
4253
.beginTransaction()
4354
.replace(R.id.settings, new SettingsFragment())

app/src/main/res/drawable/bordered_edittext.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="rectangle">
4-
<solid android:color="@android:color/white" />
4+
<solid android:color="@color/colorOutput" />
55
<stroke
66
android:width="1dip"
77
android:color="@color/colorPrimary" />

app/src/main/res/drawable/ic_launcher_foreground.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
android:width="108dp"
33
android:height="108dp"
44
android:viewportWidth="24"
5-
android:viewportHeight="24"
6-
android:tint="#FFFFFF">
7-
<group android:scaleX="0.58"
8-
android:scaleY="0.58"
9-
android:translateX="5.04"
10-
android:translateY="5.04">
5+
android:viewportHeight="24">
6+
<group android:scaleX="0.51944447"
7+
android:scaleY="0.51944447"
8+
android:translateX="5.766667"
9+
android:translateY="5.5358024">
1110
<path
12-
android:fillColor="@android:color/white"
13-
android:pathData="M18,9.98L6,22h12h4V5.97L18,9.98zM20,20h-2v-7.22l2,-2V20zM5.22,7.22L3.93,5.93c3.9,-3.91 10.24,-3.91 14.15,0l-1.29,1.29C13.6,4.03 8.41,4.03 5.22,7.22zM12.93,11.07L11,13l-1.93,-1.93C10.14,10.01 11.86,10.01 12.93,11.07zM14.22,9.79c-1.78,-1.77 -4.66,-1.77 -6.43,0L6.5,8.5c2.48,-2.48 6.52,-2.48 9,0L14.22,9.79z"/>
11+
android:pathData="M12,3C6.95,3 3.15,4.85 0,7.23L12,22 24,7.25C20.85,4.87 17.05,3 12,3zM13,16h-2v-6h2v6zM11,8L11,6h2v2h-2z"
12+
android:fillColor="#e3e3e3"/>
1413
</group>
1514
</vector>

app/src/main/res/drawable/rounded_edittext.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:padding="10dp"
44
android:shape="rectangle">
5-
<solid android:color="@color/lightGray" />
5+
<solid android:color="@color/colorTextArea" />
66
<corners
77
android:bottomLeftRadius="10dp"
88
android:bottomRightRadius="10dp"

app/src/main/res/layout/activity_about.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
android:layout_height="match_parent"
77
android:orientation="vertical"
88
android:fitsSystemWindows="true"
9+
android:id="@+id/main"
910
tools:context=".gui.activity.AboutActivity">
1011

1112
<FrameLayout

0 commit comments

Comments
 (0)