stacked notification almost fixed

This commit is contained in:
2021-08-31 18:53:26 +02:00
parent 5a7cbfcdc9
commit dc35c8b7fb
3 changed files with 59 additions and 29 deletions

View File

@ -145,7 +145,7 @@ public class ActivityManageTriggerWifi extends Activity
wifiList.add(wifi.SSID.replaceAll("\"+$", "").replaceAll("^\"+", ""));
}
if (wifiList.size() > 0)
if (wifiList.size() > 0)
{
spinnerWifiList.setEnabled(true);
Collections.sort(wifiList);

View File

@ -447,6 +447,14 @@ public class Miscellaneous extends Service
public static boolean compare(String direction, String needle, String haystack)
{
// If only one of needle or haystack is null
if(
(needle == null && haystack != null)
||
(needle != null && haystack == null)
)
return false;
switch(direction)
{
case Trigger.directionEquals: