Permissions constants used.
This commit is contained in:
parent
f325b30917
commit
1ea3bdaea3
@ -25,7 +25,9 @@ import androidx.core.app.ActivityCompat;
|
|||||||
|
|
||||||
import com.jens.automation2.receivers.BluetoothReceiver;
|
import com.jens.automation2.receivers.BluetoothReceiver;
|
||||||
|
|
||||||
|
import java.lang.reflect.Array;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ActivityManageTriggerWifi extends Activity
|
public class ActivityManageTriggerWifi extends Activity
|
||||||
@ -132,7 +134,10 @@ public class ActivityManageTriggerWifi extends Activity
|
|||||||
wifiList.add(wifi.SSID.replaceAll("\"+$", "").replaceAll("^\"+", ""));
|
wifiList.add(wifi.SSID.replaceAll("\"+$", "").replaceAll("^\"+", ""));
|
||||||
|
|
||||||
if(wifiList.size() > 0)
|
if(wifiList.size() > 0)
|
||||||
|
{
|
||||||
spinnerWifiList.setEnabled(true);
|
spinnerWifiList.setEnabled(true);
|
||||||
|
Collections.sort(wifiList);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
spinnerWifiList.setEnabled(false);
|
spinnerWifiList.setEnabled(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user