wifi trigger, memorize most recent ssid

This commit is contained in:
jens 2022-05-07 02:06:17 +02:00
parent 62c97832a9
commit d5ce04f80b
2 changed files with 5 additions and 4 deletions

View File

@ -41,6 +41,7 @@ public class WifiBroadcastReceiver extends BroadcastReceiver
if(newWifiSsid.startsWith("\"") && newWifiSsid.endsWith("\"")) if(newWifiSsid.startsWith("\"") && newWifiSsid.endsWith("\""))
newWifiSsid = newWifiSsid.substring(1, newWifiSsid.length()-1); newWifiSsid = newWifiSsid.substring(1, newWifiSsid.length()-1);
if(newWifiSsid.length() > 0)
WifiBroadcastReceiver.lastWifiSsid = newWifiSsid; WifiBroadcastReceiver.lastWifiSsid = newWifiSsid;
} }