Merge branch 'android-updates'
Fixes edge-to-edge layout issues with the settings and application selection Activities.
This commit is contained in:
@@ -9,8 +9,8 @@ android {
|
|||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 36
|
targetSdkVersion 36
|
||||||
|
|
||||||
versionCode 95
|
versionCode 96
|
||||||
versionName "2.6.1"
|
versionName "2.6.2"
|
||||||
|
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
ndkBuild {
|
ndkBuild {
|
||||||
|
|||||||
+5
-2
@@ -20,7 +20,9 @@ import android.content.Intent;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import org.strongswan.android.R;
|
||||||
import org.strongswan.android.data.VpnProfileDataSource;
|
import org.strongswan.android.data.VpnProfileDataSource;
|
||||||
|
import org.strongswan.android.utils.Utils;
|
||||||
|
|
||||||
import androidx.activity.OnBackPressedCallback;
|
import androidx.activity.OnBackPressedCallback;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
@@ -38,8 +40,9 @@ public class SelectedApplicationsActivity extends AppCompatActivity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.selected_applications_activity);
|
||||||
WindowCompat.enableEdgeToEdge(getWindow());
|
WindowCompat.enableEdgeToEdge(getWindow());
|
||||||
WindowCompat.setDecorFitsSystemWindows(getWindow(), true);
|
Utils.applyWindowInsetsAsMarginsForLists(findViewById(R.id.fragment_container));
|
||||||
|
|
||||||
ActionBar actionBar = getSupportActionBar();
|
ActionBar actionBar = getSupportActionBar();
|
||||||
actionBar.setDisplayHomeAsUpEnabled(true);
|
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||||
@@ -59,7 +62,7 @@ public class SelectedApplicationsActivity extends AppCompatActivity
|
|||||||
if (mApps == null)
|
if (mApps == null)
|
||||||
{
|
{
|
||||||
mApps = new SelectedApplicationsListFragment();
|
mApps = new SelectedApplicationsListFragment();
|
||||||
fm.beginTransaction().add(android.R.id.content, mApps, LIST_TAG).commit();
|
fm.beginTransaction().add(R.id.fragment_container, mApps, LIST_TAG).commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
@@ -34,6 +34,7 @@ import org.strongswan.android.R;
|
|||||||
import org.strongswan.android.data.VpnProfileDataSource;
|
import org.strongswan.android.data.VpnProfileDataSource;
|
||||||
import org.strongswan.android.ui.adapter.SelectedApplicationEntry;
|
import org.strongswan.android.ui.adapter.SelectedApplicationEntry;
|
||||||
import org.strongswan.android.ui.adapter.SelectedApplicationsAdapter;
|
import org.strongswan.android.ui.adapter.SelectedApplicationsAdapter;
|
||||||
|
import org.strongswan.android.utils.Utils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -61,6 +62,9 @@ public class SelectedApplicationsListFragment extends ListFragment implements Me
|
|||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
requireActivity().addMenuProvider(this, getViewLifecycleOwner());
|
requireActivity().addMenuProvider(this, getViewLifecycleOwner());
|
||||||
|
|
||||||
|
getListView().setClipToPadding(false);
|
||||||
|
Utils.applyWindowInsetsAsPaddingForLists(getListView());
|
||||||
|
|
||||||
final boolean readOnly = getActivity().getIntent().getBooleanExtra(VpnProfileDataSource.KEY_READ_ONLY, false);
|
final boolean readOnly = getActivity().getIntent().getBooleanExtra(VpnProfileDataSource.KEY_READ_ONLY, false);
|
||||||
getListView().setChoiceMode(readOnly ? ListView.CHOICE_MODE_NONE : ListView.CHOICE_MODE_MULTIPLE);
|
getListView().setChoiceMode(readOnly ? ListView.CHOICE_MODE_NONE : ListView.CHOICE_MODE_MULTIPLE);
|
||||||
|
|
||||||
|
|||||||
+10
-4
@@ -19,6 +19,8 @@ package org.strongswan.android.ui;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import org.strongswan.android.R;
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.core.view.WindowCompat;
|
import androidx.core.view.WindowCompat;
|
||||||
|
|
||||||
@@ -29,14 +31,18 @@ public class SettingsActivity extends AppCompatActivity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.settings_activity);
|
||||||
WindowCompat.enableEdgeToEdge(getWindow());
|
WindowCompat.enableEdgeToEdge(getWindow());
|
||||||
WindowCompat.setDecorFitsSystemWindows(getWindow(), true);
|
|
||||||
|
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
getSupportFragmentManager().beginTransaction()
|
if (savedInstanceState == null)
|
||||||
.replace(android.R.id.content, new SettingsFragment())
|
{
|
||||||
.commit();
|
getSupportFragmentManager().beginTransaction()
|
||||||
|
.setReorderingAllowed(true)
|
||||||
|
.add(R.id.fragment_container, SettingsFragment.class, null)
|
||||||
|
.commit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
-1
@@ -41,7 +41,6 @@ import androidx.activity.result.contract.ActivityResultContracts;
|
|||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.appcompat.app.AppCompatDialogFragment;
|
import androidx.appcompat.app.AppCompatDialogFragment;
|
||||||
import androidx.core.view.WindowCompat;
|
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
public class TrustedCertificateImportActivity extends AppCompatActivity
|
public class TrustedCertificateImportActivity extends AppCompatActivity
|
||||||
|
|||||||
-1
@@ -33,7 +33,6 @@ import org.strongswan.android.logic.TrustedCertificateManager;
|
|||||||
import org.strongswan.android.logic.TrustedCertificateManager.TrustedCertificateSource;
|
import org.strongswan.android.logic.TrustedCertificateManager.TrustedCertificateSource;
|
||||||
import org.strongswan.android.security.TrustedCertificateEntry;
|
import org.strongswan.android.security.TrustedCertificateEntry;
|
||||||
import org.strongswan.android.ui.CertificateDeleteConfirmationDialog.OnCertificateDeleteListener;
|
import org.strongswan.android.ui.CertificateDeleteConfirmationDialog.OnCertificateDeleteListener;
|
||||||
import org.strongswan.android.utils.Utils;
|
|
||||||
|
|
||||||
import java.security.KeyStore;
|
import java.security.KeyStore;
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
|
# 2.6.2 #
|
||||||
|
|
||||||
|
- Fixt randlose Anzeige von Settings und App-Auswahl
|
||||||
|
|
||||||
# 2.6.1 #
|
# 2.6.1 #
|
||||||
|
|
||||||
- Aktualisiert OpenSSL, um ML-KEM zu unterstützen (muss explizit in Proposal konfiguriert werden)
|
- Aktualisiert OpenSSL, um ML-KEM zu unterstützen (muss explizit in Proposal konfiguriert werden)
|
||||||
- Behebt eine Schwachstelle im eap-mschapv2 Plugin
|
- Behebt eine Schwachstelle im eap-mschapv2 Plugin
|
||||||
- Korrigiert den Dateinamen, wenn das Log exportiert wird
|
- Korrigiert den Dateinamen beim Log-Export
|
||||||
|
|
||||||
# 2.6.0 #
|
# 2.6.0 #
|
||||||
|
|
||||||
- Erlaubt die Vorauswahl eines Benutzer-Zertifikats via Alias in verwalteten Profilen
|
- Auswahl von Benutzer-Zertifikaten in verwalteten Profilen (Vorauswahl via Alias ist möglich)
|
||||||
- Erlaubt die Auswahl von Benutzer-Zertifikaten in verwalteten Profilen
|
- Fixt Lesen von Split-Tunneling Settings in verwalteten Profilen
|
||||||
- Fixt das Lesen von Split-Tunneling Settings in verwalteten Profilen
|
- Anpassungen für randlose Anzeige
|
||||||
- Anpassungen für die randlose Anzeige
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# 2.6.2 #
|
||||||
|
|
||||||
|
- Fix edge-to-edge layout issues with settings and app selection
|
||||||
|
|
||||||
# 2.6.1 #
|
# 2.6.1 #
|
||||||
|
|
||||||
- Update OpenSSL to support ML-KEM (requires explicit configuration in proposals)
|
- Update OpenSSL to support ML-KEM (requires explicit configuration in proposals)
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2025 Tobias Brunner
|
||||||
|
|
||||||
|
Copyright (C) secunet Security Networks AG
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by the
|
||||||
|
Free Software Foundation; either version 2 of the License, or (at your
|
||||||
|
option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
-->
|
||||||
|
<androidx.fragment.app.FragmentContainerView
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/fragment_container"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent" />
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2025 Tobias Brunner
|
||||||
|
|
||||||
|
Copyright (C) secunet Security Networks AG
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by the
|
||||||
|
Free Software Foundation; either version 2 of the License, or (at your
|
||||||
|
option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
-->
|
||||||
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/fragment_container"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:fitsSystemWindows="true" />
|
||||||
Reference in New Issue
Block a user