From 1ea3bdaea379bc5102e8b0700686ecec9652532f Mon Sep 17 00:00:00 2001 From: jens Date: Sun, 16 May 2021 19:57:05 +0200 Subject: [PATCH] Permissions constants used. --- .../java/com/jens/automation2/ActivityManageTriggerWifi.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/jens/automation2/ActivityManageTriggerWifi.java b/app/src/main/java/com/jens/automation2/ActivityManageTriggerWifi.java index cc30f047..fe4bd752 100644 --- a/app/src/main/java/com/jens/automation2/ActivityManageTriggerWifi.java +++ b/app/src/main/java/com/jens/automation2/ActivityManageTriggerWifi.java @@ -25,7 +25,9 @@ import androidx.core.app.ActivityCompat; import com.jens.automation2.receivers.BluetoothReceiver; +import java.lang.reflect.Array; import java.util.ArrayList; +import java.util.Collections; import java.util.List; public class ActivityManageTriggerWifi extends Activity @@ -132,7 +134,10 @@ public class ActivityManageTriggerWifi extends Activity wifiList.add(wifi.SSID.replaceAll("\"+$", "").replaceAll("^\"+", "")); if(wifiList.size() > 0) + { spinnerWifiList.setEnabled(true); + Collections.sort(wifiList); + } else { spinnerWifiList.setEnabled(false);