Fix onNewIntent transport selection assertion

Fixes #4301
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-11-02 12:22:46 -08:00
parent d4887e11be
commit 4371708fc4

View File

@ -67,8 +67,13 @@ public class TransportOptions {
public void disableTransport(Type type) { public void disableTransport(Type type) {
Optional<TransportOption> option = find(type); Optional<TransportOption> option = find(type);
if (option.isPresent()) { if (option.isPresent()) {
enabledTransports.remove(option.get()); enabledTransports.remove(option.get());
if (manuallySelected && type == selectedType) {
manuallySelected = false;
}
} }
} }