Permissions constants used.

This commit is contained in:
jens 2021-05-16 19:57:05 +02:00
parent f325b30917
commit 1ea3bdaea3

View File

@ -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);