tethering type

This commit is contained in:
Jens 2022-08-23 22:43:44 +02:00
parent 8a00529991
commit fad6050c7a
2 changed files with 7 additions and 2 deletions

View File

@ -985,7 +985,12 @@ public class Trigger
for(String oneOfLastTypes : TetheringReceiver.getLastTetheringTypes())
{
if(oneOfLastTypes.equals(getTriggerParameter2()))
return true;
{
if(triggerParameter)
return true;
else
return false;
}
}
}

View File

@ -74,7 +74,7 @@ public class TetheringReceiver extends android.content.BroadcastReceiver impleme
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeWifi);
else if(adapterName.contains("bluetooth"))
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeBluetooth);
else if(adapterName.contains("usb"))
else if(adapterName.contains("rndis"))
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeUsb);
else if(adapterName.contains("ndis"))
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeCable);