forked from jens/Automation
tethering type
This commit is contained in:
parent
8a00529991
commit
fad6050c7a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user