From 88c59040f8c38dacb140d75c3b0df2d19a5c3f82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@topobyte.de>
Date: Mon, 19 Jul 2021 16:50:34 +0200
Subject: [PATCH] On API 28- don't halt if WifiP2p is available before Wifi

---
 .../java/org/briarproject/hotspot/ConditionManagerImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/src/main/java/org/briarproject/hotspot/ConditionManagerImpl.java b/app/src/main/java/org/briarproject/hotspot/ConditionManagerImpl.java
index 296a050..93b4b4a 100644
--- a/app/src/main/java/org/briarproject/hotspot/ConditionManagerImpl.java
+++ b/app/src/main/java/org/briarproject/hotspot/ConditionManagerImpl.java
@@ -62,7 +62,7 @@ class ConditionManagerImpl extends ConditionManager {
 			// in progress toward the requested state".
 			if (wifiManager.setWifiEnabled(true)) {
 				LOG.info("Enabled wifi");
-				return false;
+				return wifiP2pEnabled;
 			}
 
 			// Wifi is not enabled and we can't seem to enable it, so ask the user
-- 
GitLab