mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 13:32:37 +00:00
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user