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())
|
for(String oneOfLastTypes : TetheringReceiver.getLastTetheringTypes())
|
||||||
{
|
{
|
||||||
if(oneOfLastTypes.equals(getTriggerParameter2()))
|
if(oneOfLastTypes.equals(getTriggerParameter2()))
|
||||||
|
{
|
||||||
|
if(triggerParameter)
|
||||||
return true;
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public class TetheringReceiver extends android.content.BroadcastReceiver impleme
|
|||||||
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeWifi);
|
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeWifi);
|
||||||
else if(adapterName.contains("bluetooth"))
|
else if(adapterName.contains("bluetooth"))
|
||||||
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeBluetooth);
|
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeBluetooth);
|
||||||
else if(adapterName.contains("usb"))
|
else if(adapterName.contains("rndis"))
|
||||||
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeUsb);
|
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeUsb);
|
||||||
else if(adapterName.contains("ndis"))
|
else if(adapterName.contains("ndis"))
|
||||||
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeCable);
|
lastTetheringTypes.add(ActivityManageTriggerTethering.tetheringTypeCable);
|
||||||
|
Loading…
Reference in New Issue
Block a user