Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4713e0d965 | ||
|
|
f6876b5b1d |
+2
-2
@@ -11,8 +11,8 @@ android {
|
||||
compileSdkVersion 36
|
||||
buildToolsVersion '36.0.0'
|
||||
useLibrary 'org.apache.http.legacy'
|
||||
versionCode 148
|
||||
versionName "1.8.7"
|
||||
versionCode 149
|
||||
versionName "1.8.8"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class ActivityManageActionSetSystemSetting extends Activity
|
||||
selectedDataType.equalsIgnoreCase("Long")
|
||||
)
|
||||
{
|
||||
if(Miscellaneous.isNumericDecimal(etSettingValue.getText().toString()) || !Miscellaneous.isNumeric(etSettingValue.getText().toString()))
|
||||
if(!Miscellaneous.isNumeric(etSettingValue.getText().toString()) || Miscellaneous.isNonDecimalNumber(etSettingValue.getText().toString()))
|
||||
{
|
||||
Toast.makeText(ActivityManageActionSetSystemSetting.this, getResources().getString(R.string.enter_a_number), Toast.LENGTH_LONG).show();
|
||||
return;
|
||||
|
||||
@@ -96,6 +96,7 @@ import java.security.SecureRandom;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.text.DateFormat;
|
||||
import java.text.DecimalFormatSymbols;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
@@ -1114,28 +1115,34 @@ public class Miscellaneous extends Service
|
||||
}
|
||||
}
|
||||
|
||||
// executes a command on the system
|
||||
private static boolean canExecuteCommand(String command)
|
||||
{
|
||||
boolean executedSuccesfully;
|
||||
try
|
||||
{
|
||||
Runtime.getRuntime().exec(command);
|
||||
executedSuccesfully = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
executedSuccesfully = false;
|
||||
}
|
||||
// executes a command on the system
|
||||
private static boolean canExecuteCommand(String command)
|
||||
{
|
||||
boolean executedSuccesfully;
|
||||
try
|
||||
{
|
||||
Runtime.getRuntime().exec(command);
|
||||
executedSuccesfully = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
executedSuccesfully = false;
|
||||
}
|
||||
|
||||
return executedSuccesfully;
|
||||
}
|
||||
|
||||
public static char getDecimalSeparator()
|
||||
{
|
||||
DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.getDefault());
|
||||
return symbols.getDecimalSeparator(); // ',' or '.'
|
||||
}
|
||||
|
||||
return executedSuccesfully;
|
||||
}
|
||||
public static boolean isNumericDecimal(String strNum)
|
||||
{
|
||||
if (strNum == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
double d = Double.parseDouble(strNum);
|
||||
@@ -1146,6 +1153,14 @@ public class Miscellaneous extends Service
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isNonDecimalNumber(String number)
|
||||
{
|
||||
if (number == null)
|
||||
return false;
|
||||
|
||||
return !number.contains(String.valueOf(getDecimalSeparator()));
|
||||
}
|
||||
|
||||
public static boolean isNumeric(String str)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
* Hinzugefügt: Möglichkeit, zwischen Global, System und Secure für System-Einstellungen zu wählen
|
||||
* Behoben: Absturz beim Öffnen der Anwendung durch die Benachrichtigung des laufenden Dienstes
|
||||
* Behoben: Absturz beim Starten des Dienstes und das Servicesymbol anzeigen, wurde in den App-Einstellungen deaktiviert
|
||||
* Behoben: Die Berechtigung "Bluetooth-Verbindung" wurde nicht angefordert, um Bluetooth ein- oder auszuschalten.
|
||||
* Behoben: Eine weitere gestartete/beendete App konnte nicht hinzugefügt werden, als die UI-Sprache niederländisch war.
|
||||
* Behoben: Prüfe auf nicht-dezimale Zahlen in einigen Eingabefeldern
|
||||
@@ -2,4 +2,5 @@
|
||||
* Fixed: Crash when opening the application through the running service's notification
|
||||
* Fixed: Crash when starting service and show service icon was deactivated in app settings
|
||||
* Fixed: "Bluetooth connect" permission was not requested for turning Bluetooth on or off.
|
||||
* Fixed: Another app started/stopped couldn't be added when UI language was Dutch.
|
||||
* Fixed: Another app started/stopped couldn't be added when UI language was Dutch.
|
||||
* Fixed: Check for non-decimal number in some input fields
|
||||
@@ -0,0 +1,6 @@
|
||||
* Se añadió la opción de elegir entre Global, Sistema y Seguro para establecer configuraciones
|
||||
* Solucionado: Bloqueo al abrir la aplicación mediante la notificación del servicio en ejecución
|
||||
* Solucionado: Fallo al iniciar el servicio y el icono de mostrar servicio se desactivó en la configuración de la app
|
||||
* Solucionado: no se solicitó permiso de "conexión Bluetooth" para activar o apagar el Bluetooth.
|
||||
* Solucionado: No se pudo añadir otra app que se inició o detuvo cuando el idioma de la interfaz era neerlandés.
|
||||
* Solucionado: Comprueba si hay un número no decimal en algunos campos de entrada
|
||||
@@ -0,0 +1,6 @@
|
||||
* Ajout d'une option pour choisir entre Global, Système et Sécurisé pour définir des paramètres
|
||||
* Corrigé : Plantage lors de l'ouverture de l'application via la notification du service en cours d'exécution
|
||||
* Corrigé : plantage au démarrage du service et l'icône d'affichage du service ont été désactivées dans les paramètres de l'application
|
||||
* Corrigé : l'autorisation « Bluetooth connect » n'a pas été demandée pour activer ou désactiver le Bluetooth.
|
||||
* Corrigé : Une autre application qui a démarré/arrêté n'a pas pu être ajoutée lorsque la langue de l'interface utilisateur était néerlandaise.
|
||||
* Corrigé : Vérifier la présence de nombre non décimal dans certains champs d'entrée
|
||||
@@ -0,0 +1,6 @@
|
||||
* Aggiunta l'opzione per scegliere tra Globale, Sistema e Sicuro per impostazioni prestabilite
|
||||
* Corretto: crash all'apertura dell'applicazione tramite la notifica del servizio in esecuzione
|
||||
* Corretto: crash all'avvio del servizio e l'icona di mostra il servizio sono state disattivate nelle impostazioni dell'app
|
||||
* Corretto: non è stato richiesto il permesso di "Bluetooth connect" per attivare o disattivare il Bluetooth.
|
||||
* Correto: Un'altra app avviata/fermata non poteva essere aggiunta quando la lingua dell'interfaccia era olandese.
|
||||
* Fisso: Verifica la presenza di numeri non decimali in alcuni campi di input
|
||||
@@ -0,0 +1,6 @@
|
||||
* Optie toegevoegd om te kiezen tussen Global, System en Secure voor ingestelde instellingen
|
||||
* Opgelost: Crash bij het openen van de applicatie via de melding van de lopende service
|
||||
* Opgelost: Crash bij het starten van de service en het service-icoon tonen was gedeactiveerd in de app-instellingen
|
||||
* Opgelost: "Bluetooth-verbinding" toestemming werd niet gevraagd om Bluetooth aan of uit te zetten.
|
||||
* Opgelost: Een andere app die was gestart/gestopt kon niet worden toegevoegd toen de UI-taal Nederlands was.
|
||||
* Vastgelegd: Controleer op niet-decimale getallen in sommige invoervelden
|
||||
@@ -0,0 +1,6 @@
|
||||
* Dodano opcję wyboru między Global, System i Secure dla ustawień określonych
|
||||
* Naprawione: Awaria przy otwieraniu aplikacji przez powiadomienie działającej usługi
|
||||
* Naprawione: Awaria przy uruchamianiu serwisu i wyświetlanie ikony serwisu została dezaktywowana w ustawieniach aplikacji
|
||||
* Naprawiono: Nie proszono o pozwolenie na "połączenie z Bluetooth" przy włączaniu lub wyłączaniu Bluetooth.
|
||||
* Naprawione: Inna aplikacja, która została uruchomiona/zatrzymana, nie mogła zostać dodana, gdy język użytkownika był niderlandzki.
|
||||
* Stałe: Sprawdź liczbę nieprzecinkową w niektórych polach wejściowych
|
||||
@@ -0,0 +1,6 @@
|
||||
* Добавлена опция выбора между Global, System и Secure для определённых настроек
|
||||
* Исправлено: сбой при открытии приложения через уведомление запускающегося сервиса
|
||||
* Исправлено: сбой при запуске сервиса, а иконка показа сервиса была деактивирована в настройках приложения
|
||||
* Исправлено: разрешение на включение или выключение Bluetooth не было запрошено.
|
||||
* Исправлено: другое приложение, запущенное/остановленное, нельзя было добавить, когда язык интерфейса был голландским.
|
||||
* Исправлено: проверка недесятичного числа в некоторых входных полях
|
||||
@@ -0,0 +1,6 @@
|
||||
* 新增了全局、系统和安全三种设置选项
|
||||
* 已修复:通过运行服务通知打开应用时崩溃
|
||||
* 已修复:启动服务时崩溃,应用设置中显示服务图标被停用
|
||||
* 已修复:未请求"蓝牙连接"权限来开关蓝牙。
|
||||
* 已修复:当用户界面语言为荷兰语时,无法添加另一个启动/停止的应用。
|
||||
* 固定:检查某些输入字段中的非十进制数字
|
||||
Reference in New Issue
Block a user