<table><tr><td style="">daniel.z.tg planned changes to this revision.<br />daniel.z.tg added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7652" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I plan on fully moving <tt style="background: #ebebeb; font-size: 13px;">isOnMobileNetwork()</tt> to <tt style="background: #ebebeb; font-size: 13px;">getNetworkBroadcastDestinations()</tt>. This is because <tt style="background: #ebebeb; font-size: 13px;">isOnMobileNetwork()</tt> currently prevents the "255.255.255.255"-destined packet from being sent from <tt style="background: #ebebeb; font-size: 13px;">LanLinkProvider</tt>, but subnet-specific destinations from <tt style="background: #ebebeb; font-size: 13px;">getNetworkBroadcastDestinations()</tt> are will only be found when we will want to use them. If no destinations are discovered, then behavior will be similar to when <tt style="background: #ebebeb; font-size: 13px;">isOnMobileNetwork() == true</tt>. In the GUI, the message could be changed from "you are on a mobile data connection" to something like "It looks like you aren't connected to any compatible networks. Try connecting to a local network."</p>

<p>Most of the changes to 'NetworkHelper' are for temporary debugging. The list of addresses that will be used and where they come from is being debugged. Also, I don't think <tt style="background: #ebebeb; font-size: 13px;">android.permission.ACCESS_WIFI_STATE</tt> will be needed when <tt style="background: #ebebeb; font-size: 13px;">getNetworkBroadcastDestinations()</tt> is done.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R225 KDE Connect - Android application</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7652" rel="noreferrer">https://phabricator.kde.org/D7652</a></div></div><br /><div><strong>To: </strong>daniel.z.tg, KDE Connect<br /><strong>Cc: </strong>albertvaka, daniel.z.tg, jeanv, tfella, aboudhar, seebauer, bugzy, progwolff, MayeulC, menasshock, ach, apol, hkaelberer<br /></div>